#2E208B#2E208B

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

Color values

HEX#2E208B
RGBrgb(46, 32, 139)
HSLhsl(248, 63%, 34%)
HSVhsv(248, 77%, 55%)
CMYKcmyk(66.9%, 77%, 0%, 45.5%)
CIE-LABlab(21.86, 39.17, -56.80)
CIE-LCHlch(21.86, 68.99, 304.59°)
OKLaboklab(34.36% 0.0259 -0.164)
OKLCHoklch(34.36% 0.166 279)
XYZxyz(6.3019, 3.4774, 24.7602)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E208B #7D8B20
analogous
#20478B #2E208B #63208B
triadic
#2E208B #8B2E20 #208B2E
tetradic
#2E208B #8B2047 #7D8B20 #208B63
square
#2E208B #8B2047 #7D8B20 #208B63
split-complementary
#2E208B #8B6320 #478B20
monochromatic
#0D0928 #1E1559 #2E208B #3E2BBD #614FD6

Accessibility & contrast

On white

12.38
#2E208B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E208B
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E208B#FFFFFF#000000##FFFFFF
##2E208B1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e208b;
/* rgb */ color: rgb(46, 32, 139);
/* oklch */ color: oklch(34.4% 0.166 279.0);
Tailwind
colors: {
  custom: {
    50: '#745eae',
    500: '#2e208b',
    950: '#000000',
  },
}
SCSS
$custom: #2e208b;
$custom-light: #745eae;
$custom-dark: #000000;
JSON
{
  "hex": "#2e208b",
  "rgb": {
    "r": 46,
    "g": 32,
    "b": 139
  },
  "hsl": {
    "h": 247.85,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34355,
    "c": 0.16603,
    "h": 279
  },
  "luminance": 0.03478
}

Semantic roles & 50–950 ramp

primary
#2E208B
secondary
#ABBA4D
accent
#E642D0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E208B

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

Preview Lab → · Contrast checker → · Palette generator →

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