#2E2B81#2E2B81

#2E2B81 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.1% C 0.140 H 277.9°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#2E2B81
RGBrgb(46, 43, 129)
HSLhsl(242, 50%, 34%)
HSVhsv(242, 67%, 51%)
CMYKcmyk(64.3%, 66.7%, 0%, 49.4%)
CIE-LABlab(23.31, 29.09, -48.14)
CIE-LCHlch(23.31, 56.25, 301.14°)
OKLaboklab(35.1% 0.0193 -0.1387)
OKLCHoklch(35.1% 0.14 277.9)
XYZxyz(5.9518, 3.8931, 21.2024)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2B81 #7E812B
analogous
#2B5381 #2E2B81 #592B81
triadic
#2E2B81 #812E2B #2B812E
tetradic
#2E2B81 #812B53 #7E812B #2B8159
square
#2E2B81 #812B53 #7E812B #2B8159
split-complementary
#2E2B81 #81592B #53812B
monochromatic
#0D0C25 #1E1C53 #2E2B81 #3E3AAF #615DC9

Accessibility & contrast

On white

11.81
#2E2B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2E2B81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2B81
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2B81#FFFFFF#000000##FFFFFF
##2E2B811.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B84
Deuteranopia (green-blind)
#00347F
Tritanopia (blue-blind)
#004152
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2e2b81;
/* rgb */ color: rgb(46, 43, 129);
/* oklch */ color: oklch(35.1% 0.140 277.9);
Tailwind
colors: {
  custom: {
    50: '#7165a6',
    500: '#2e2b81',
    950: '#000000',
  },
}
SCSS
$custom: #2e2b81;
$custom-light: #7165a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2b81",
  "rgb": {
    "r": 46,
    "g": 43,
    "b": 129
  },
  "hsl": {
    "h": 242.093,
    "s": 50,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35099,
    "c": 0.14002,
    "h": 277.9
  },
  "luminance": 0.03894
}

Semantic roles & 50–950 ramp

primary
#2E2B81
secondary
#ACAF59
accent
#DA4ED5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2E2B81

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

Preview Lab → · Contrast checker → · Palette generator →

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