#2E2186#2E2186

#2E2186 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.159 H 279.6°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#2E2186
RGBrgb(46, 33, 134)
HSLhsl(248, 60%, 33%)
HSVhsv(248, 75%, 53%)
CMYKcmyk(65.7%, 75.4%, 0%, 47.5%)
CIE-LABlab(21.54, 36.97, -54.20)
CIE-LCHlch(21.54, 65.60, 304.30°)
OKLaboklab(33.97% 0.0265 -0.1564)
OKLCHoklch(33.97% 0.159 279.6)
XYZxyz(5.9723, 3.3893, 22.8891)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2186 #798621
analogous
#214686 #2E2186 #612186
triadic
#2E2186 #862E21 #21862E
tetradic
#2E2186 #862146 #798621 #218661
square
#2E2186 #862146 #798621 #218661
split-complementary
#2E2186 #866121 #468621
monochromatic
#0C0924 #1D1555 #2E2186 #3F2DB7 #5F4ED3

Accessibility & contrast

On white

12.51
#2E2186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E2186
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2186#FFFFFF#000000##FFFFFF
##2E21861.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003789
Deuteranopia (green-blind)
#003084
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2e2186;
/* rgb */ color: rgb(46, 33, 134);
/* oklch */ color: oklch(34.0% 0.159 279.6);
Tailwind
colors: {
  custom: {
    50: '#735eaa',
    500: '#2e2186',
    950: '#000000',
  },
}
SCSS
$custom: #2e2186;
$custom-light: #735eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2186",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 134
  },
  "hsl": {
    "h": 247.723,
    "s": 60.479,
    "l": 32.745
  },
  "oklch": {
    "l": 0.3397,
    "c": 0.15863,
    "h": 279.6
  },
  "luminance": 0.0339
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E2186

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

Preview Lab → · Contrast checker → · Palette generator →

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