#2E218B#2E218B

#2E218B is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.165 H 278.8°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#2E218B
RGBrgb(46, 33, 139)
HSLhsl(247, 62%, 34%)
HSVhsv(247, 76%, 55%)
CMYKcmyk(66.9%, 76.3%, 0%, 45.5%)
CIE-LABlab(22.06, 38.61, -56.47)
CIE-LCHlch(22.06, 68.41, 304.36°)
OKLaboklab(34.49% 0.0253 -0.163)
OKLCHoklch(34.49% 0.165 278.8)
XYZxyz(6.3293, 3.5321, 24.7693)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E218B #7E8B21
analogous
#21498B #2E218B #63218B
triadic
#2E218B #8B2E21 #218B2E
tetradic
#2E218B #8B2149 #7E8B21 #218B63
square
#2E218B #8B2149 #7E8B21 #218B63
split-complementary
#2E218B #8B6321 #498B21
monochromatic
#0D0A28 #1E155A #2E218B #3E2DBC #6151D6

Accessibility & contrast

On white

12.31
#2E218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2E218B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E218B
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E218B#FFFFFF#000000##FFFFFF
##2E218B1.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e218b;
/* rgb */ color: rgb(46, 33, 139);
/* oklch */ color: oklch(34.5% 0.165 278.8);
Tailwind
colors: {
  custom: {
    50: '#745eae',
    500: '#2e218b',
    950: '#000000',
  },
}
SCSS
$custom: #2e218b;
$custom-light: #745eae;
$custom-dark: #000000;
JSON
{
  "hex": "#2e218b",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 247.358,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34495,
    "c": 0.165,
    "h": 278.8
  },
  "luminance": 0.03533
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E218B

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

Preview Lab → · Contrast checker → · Palette generator →

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