#2E2187#2E2187

#2E2187 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.160 H 279.4°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#2E2187
RGBrgb(46, 33, 135)
HSLhsl(248, 61%, 33%)
HSVhsv(248, 76%, 53%)
CMYKcmyk(65.9%, 75.6%, 0%, 47.1%)
CIE-LABlab(21.64, 37.30, -54.65)
CIE-LCHlch(21.64, 66.17, 304.31°)
OKLaboklab(34.07% 0.0262 -0.1577)
OKLCHoklch(34.07% 0.16 279.4)
XYZxyz(6.0423, 3.4173, 23.2582)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2187 #7A8721
analogous
#214787 #2E2187 #612187
triadic
#2E2187 #872E21 #21872E
tetradic
#2E2187 #872147 #7A8721 #218761
square
#2E2187 #872147 #7A8721 #218761
split-complementary
#2E2187 #876121 #478721
monochromatic
#0C0925 #1D1556 #2E2187 #3F2DB8 #604FD4

Accessibility & contrast

On white

12.47
#2E2187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2E2187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2187
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2187#FFFFFF#000000##FFFFFF
##2E21871.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003085
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2e2187;
/* rgb */ color: rgb(46, 33, 135);
/* oklch */ color: oklch(34.1% 0.160 279.4);
Tailwind
colors: {
  custom: {
    50: '#735eab',
    500: '#2e2187',
    950: '#000000',
  },
}
SCSS
$custom: #2e2187;
$custom-light: #735eab;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2187",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 247.647,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34074,
    "c": 0.15991,
    "h": 279.4
  },
  "luminance": 0.03418
}

Semantic roles & 50–950 ramp

primary
#2E2187
secondary
#AAB74D
accent
#E444CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E2187

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

Preview Lab → · Contrast checker → · Palette generator →

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