#2D2A67

A color in the Violet family

#2d2a67 is a color in the Violet family: RGB(45, 42, 103), HSL(243°, 42%, 28%), CMYK(56%, 59%, 0%, 60%). Closest named color: midnightblue. Contrast is 12.82:1 on white and 1.64:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#2d2a67
RGBrgb(45 42 103)
RGB (legacy)rgb(45, 42, 103)
RGB %rgb(18% 16% 40%)
HSLhsl(243 42% 28%)
HSV / HSBhsv(243, 59%, 40%)
HWBhwb(243 16% 60%)
CMYKcmyk(56%, 59%, 0%, 60%)
CIELAB (D50)lab(20.31 16.25 -36.2)
LCHlch(20.31 39.68 294.18)
OKLaboklab(0.3255 0.0201 -0.1018)
OKLCHoklch(0.3255 0.1038 281.16)
Decimal2959975

Properties

Color ToneViolet
Closest named colormidnightblue ΔE 5.7
Closest web-safe color#333366
Hue243°
Saturation (HSL / HSV)42% / 59%
Lightness (HSL)28%
Brightness or Value (HSV)40%
Luminance (Rec.601 / Rec.709)20% / 18%
Relative luminance (WCAG)0.0319
Red / Green / Blue45 / 42 / 103

WCAG 2.2 Contrast Ratio

On White (#ffffff)
12.82:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.64:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 98.7 / 0 · As background with white / black text: Lc -102 / 0

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #2d2a67;
  --color-brand-oklch: oklch(32.55% 0.1038 281.16);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(45 42 103 / 50%); }
/* Tailwind CSS */
<div class="bg-[#2d2a67] text-[#2d2a67] border-[#2d2a67]">