#2E237B#2E237B

#2E237B is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.142 H 281.0°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#2E237B
RGBrgb(46, 35, 123)
HSLhsl(248, 56%, 31%)
HSVhsv(248, 72%, 48%)
CMYKcmyk(62.6%, 71.5%, 0%, 51.8%)
CIE-LABlab(20.88, 32.09, -48.33)
CIE-LCHlch(20.88, 58.02, 303.59°)
OKLaboklab(33.16% 0.0271 -0.1393)
OKLCHoklch(33.16% 0.142 281)
XYZxyz(5.3018, 3.2126, 19.0758)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E237B #707B23
analogous
#23447B #2E237B #5A237B
triadic
#2E237B #7B2E23 #237B2E
tetradic
#2E237B #7B2344 #707B23 #237B5A
square
#2E237B #7B2344 #707B23 #237B5A
split-complementary
#2E237B #7B5A23 #447B23
monochromatic
#0A081C #1C154B #2E237B #4031AB #5C4CCC

Accessibility & contrast

On white

12.78
#2E237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2E237B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E237B
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E237B#FFFFFF#000000##FFFFFF
##2E237B1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e237b;
/* rgb */ color: rgb(46, 35, 123);
/* oklch */ color: oklch(33.2% 0.142 281.0);
Tailwind
colors: {
  custom: {
    50: '#715fa2',
    500: '#2e237b',
    950: '#000000',
  },
}
SCSS
$custom: #2e237b;
$custom-light: #715fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e237b",
  "rgb": {
    "r": 46,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 247.5,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33164,
    "c": 0.14187,
    "h": 281
  },
  "luminance": 0.03213
}

Semantic roles & 50–950 ramp

primary
#2E237B
secondary
#A1AE4C
accent
#DF49CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2E237B

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

Preview Lab → · Contrast checker → · Palette generator →

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