#2E218A#2E218A

#2E218A is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.164 H 279.0°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#2E218A
RGBrgb(46, 33, 138)
HSLhsl(247, 61%, 34%)
HSVhsv(247, 76%, 54%)
CMYKcmyk(66.7%, 76.1%, 0%, 45.9%)
CIE-LABlab(21.96, 38.28, -56.02)
CIE-LCHlch(21.96, 67.85, 304.35°)
OKLaboklab(34.39% 0.0255 -0.1617)
OKLCHoklch(34.39% 0.164 279)
XYZxyz(6.2565, 3.5030, 24.3863)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E218A #7D8A21
analogous
#21488A #2E218A #62218A
triadic
#2E218A #8A2E21 #218A2E
tetradic
#2E218A #8A2148 #7D8A21 #218A62
square
#2E218A #8A2148 #7D8A21 #218A62
split-complementary
#2E218A #8A6221 #488A21
monochromatic
#0D0927 #1E1559 #2E218A #3E2DBB #6150D5

Accessibility & contrast

On white

12.35
#2E218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2E218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E218A
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E218A#FFFFFF#000000##FFFFFF
##2E218A1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398D
Deuteranopia (green-blind)
#003088
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2e218a;
/* rgb */ color: rgb(46, 33, 138);
/* oklch */ color: oklch(34.4% 0.164 279.0);
Tailwind
colors: {
  custom: {
    50: '#745ead',
    500: '#2e218a',
    950: '#000000',
  },
}
SCSS
$custom: #2e218a;
$custom-light: #745ead;
$custom-dark: #000000;
JSON
{
  "hex": "#2e218a",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 247.429,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34389,
    "c": 0.16373,
    "h": 279
  },
  "luminance": 0.03504
}

Semantic roles & 50–950 ramp

primary
#2E218A
secondary
#ABB94E
accent
#E543D1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E218A

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

Preview Lab → · Contrast checker → · Palette generator →

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