#2E226B#2E226B

#2E226B is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.5% C 0.121 H 284.5°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#2E226B
RGBrgb(46, 34, 107)
HSLhsl(250, 52%, 28%)
HSVhsv(250, 68%, 42%)
CMYKcmyk(57%, 68.2%, 0%, 58%)
CIE-LABlab(19.17, 27.29, -40.83)
CIE-LCHlch(19.17, 49.11, 303.76°)
OKLaboklab(31.47% 0.0304 -0.1172)
OKLCHoklch(31.47% 0.121 284.5)
XYZxyz(4.3518, 2.7862, 14.2155)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E226B #5F6B22
analogous
#223A6B #2E226B #52226B
triadic
#2E226B #6B2E22 #226B2E
tetradic
#2E226B #6B223A #5F6B22 #226B52
square
#2E226B #6B223A #5F6B22 #226B52
split-complementary
#2E226B #6B5222 #3A6B22
monochromatic
#0A0717 #1A133D #2E226B #423199 #5944C4

Accessibility & contrast

On white

13.49
#2E226B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2E226B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E226B
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E226B#FFFFFF#000000##FFFFFF
##2E226B1.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316D
Deuteranopia (green-blind)
#002C6A
Tritanopia (blue-blind)
#143443
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2e226b;
/* rgb */ color: rgb(46, 34, 107);
/* oklch */ color: oklch(31.5% 0.121 284.5);
Tailwind
colors: {
  custom: {
    50: '#6e5e96',
    500: '#2e226b',
    950: '#000000',
  },
}
SCSS
$custom: #2e226b;
$custom-light: #6e5e96;
$custom-dark: #000000;
JSON
{
  "hex": "#2e226b",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 107
  },
  "hsl": {
    "h": 249.863,
    "s": 51.773,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31474,
    "c": 0.12113,
    "h": 284.5
  },
  "luminance": 0.02786
}

Semantic roles & 50–950 ramp

primary
#2E226B
secondary
#919F4A
accent
#DB4DC4
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #2E226B

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

Preview Lab → · Contrast checker → · Palette generator →

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