#2E244F#2E244F

#2E244F is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.5% C 0.076 H 291.8°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#2E244F
RGBrgb(46, 36, 79)
HSLhsl(254, 37%, 23%)
HSVhsv(254, 54%, 31%)
CMYKcmyk(41.8%, 54.4%, 0%, 69%)
CIE-LABlab(17.49, 16.55, -24.94)
CIE-LCHlch(17.49, 29.93, 303.58°)
OKLaboklab(29.55% 0.0282 -0.0705)
OKLCHoklch(29.55% 0.076 291.8)
XYZxyz(3.1685, 2.4070, 7.6933)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E244F #454F24
analogous
#24304F #2E244F #43244F
triadic
#2E244F #4F2E24 #244F2E
tetradic
#2E244F #4F2430 #454F24 #244F43
square
#2E244F #4F2430 #454F24 #244F43
split-complementary
#2E244F #4F4324 #304F24
monochromatic
#0C0A15 #161125 #2E244F #463779 #5F4AA3

Accessibility & contrast

On white

14.18
#2E244F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2E244F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E244F
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E244F#FFFFFF#000000##FFFFFF
##2E244F1.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132C51
Deuteranopia (green-blind)
#152A4E
Tritanopia (blue-blind)
#262D35
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2e244f;
/* rgb */ color: rgb(46, 36, 79);
/* oklch */ color: oklch(29.5% 0.076 291.8);
Tailwind
colors: {
  custom: {
    50: '#695f80',
    500: '#2e244f',
    950: '#000000',
  },
}
SCSS
$custom: #2e244f;
$custom-light: #695f80;
$custom-dark: #000000;
JSON
{
  "hex": "#2e244f",
  "rgb": {
    "r": 46,
    "g": 36,
    "b": 79
  },
  "hsl": {
    "h": 253.953,
    "s": 37.391,
    "l": 22.549
  },
  "oklch": {
    "l": 0.29546,
    "c": 0.07596,
    "h": 291.8
  },
  "luminance": 0.02407
}

Semantic roles & 50–950 ramp

primary
#2E244F
secondary
#76824C
accent
#CD5AB3
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #2E244F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#2E244F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva