#2E218D#2E218D

#2E218D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.168 H 278.5°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#2E218D
RGBrgb(46, 33, 141)
HSLhsl(247, 62%, 34%)
HSVhsv(247, 77%, 55%)
CMYKcmyk(67.4%, 76.6%, 0%, 44.7%)
CIE-LABlab(22.27, 39.26, -57.37)
CIE-LCHlch(22.27, 69.52, 304.39°)
OKLaboklab(34.71% 0.0248 -0.1657)
OKLCHoklch(34.71% 0.168 278.5)
XYZxyz(6.4767, 3.5911, 25.5460)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E218D #808D21
analogous
#214A8D #2E218D #64218D
triadic
#2E218D #8D2E21 #218D2E
tetradic
#2E218D #8D214A #808D21 #218D64
square
#2E218D #8D214A #808D21 #218D64
split-complementary
#2E218D #8D6421 #4A8D21
monochromatic
#0E0A2A #1E155B #2E218D #3E2DBF #6252D6

Accessibility & contrast

On white

12.22
#2E218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2E218D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E218D
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E218D#FFFFFF#000000##FFFFFF
##2E218D1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00318B
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2e218d;
/* rgb */ color: rgb(46, 33, 141);
/* oklch */ color: oklch(34.7% 0.168 278.5);
Tailwind
colors: {
  custom: {
    50: '#755faf',
    500: '#2e218d',
    950: '#000000',
  },
}
SCSS
$custom: #2e218d;
$custom-light: #755faf;
$custom-dark: #000000;
JSON
{
  "hex": "#2e218d",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 247.222,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34706,
    "c": 0.16752,
    "h": 278.5
  },
  "luminance": 0.03592
}

Semantic roles & 50–950 ramp

primary
#2E218D
secondary
#ADBA50
accent
#E543D2
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #2E218D

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

Preview Lab → · Contrast checker → · Palette generator →

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