#2E238D#2E238D

#2E238D is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.0% C 0.165 H 278.2°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#2E238D
RGBrgb(46, 35, 141)
HSLhsl(246, 60%, 35%)
HSVhsv(246, 75%, 55%)
CMYKcmyk(67.4%, 75.2%, 0%, 44.7%)
CIE-LABlab(22.67, 38.13, -56.71)
CIE-LCHlch(22.67, 68.34, 303.92°)
OKLaboklab(34.99% 0.0235 -0.1637)
OKLCHoklch(34.99% 0.165 278.2)
XYZxyz(6.5339, 3.7054, 25.5650)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E238D #828D23
analogous
#234D8D #2E238D #63238D
triadic
#2E238D #8D2E23 #238D2E
tetradic
#2E238D #8D234D #828D23 #238D63
square
#2E238D #8D234D #828D23 #238D63
split-complementary
#2E238D #8D6323 #4D8D23
monochromatic
#0E0B2B #1E175C #2E238D #3E2FBE #6355D5

Accessibility & contrast

On white

12.06
#2E238D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2E238D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E238D
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E238D#FFFFFF#000000##FFFFFF
##2E238D1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00328B
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2e238d;
/* rgb */ color: rgb(46, 35, 141);
/* oklch */ color: oklch(35.0% 0.165 278.2);
Tailwind
colors: {
  custom: {
    50: '#7460af',
    500: '#2e238d',
    950: '#000000',
  },
}
SCSS
$custom: #2e238d;
$custom-light: #7460af;
$custom-dark: #000000;
JSON
{
  "hex": "#2e238d",
  "rgb": {
    "r": 46,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 246.226,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34991,
    "c": 0.16543,
    "h": 278.2
  },
  "luminance": 0.03706
}

Semantic roles & 50–950 ramp

primary
#2E238D
secondary
#AEB953
accent
#E344D3
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #2E238D

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

Preview Lab → · Contrast checker → · Palette generator →

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