#2E238A#2E238A

#2E238A is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.162 H 278.6°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#2E238A
RGBrgb(46, 35, 138)
HSLhsl(246, 60%, 34%)
HSVhsv(246, 75%, 54%)
CMYKcmyk(66.7%, 74.6%, 0%, 45.9%)
CIE-LABlab(22.36, 37.13, -55.34)
CIE-LCHlch(22.36, 66.65, 303.86°)
OKLaboklab(34.68% 0.0242 -0.1598)
OKLCHoklch(34.68% 0.162 278.6)
XYZxyz(6.3137, 3.6174, 24.4053)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E238A #7F8A23
analogous
#234C8A #2E238A #62238A
triadic
#2E238A #8A2E23 #238A2E
tetradic
#2E238A #8A234C #7F8A23 #238A62
square
#2E238A #8A234C #7F8A23 #238A62
split-complementary
#2E238A #8A6223 #4C8A23
monochromatic
#0D0A28 #1E1759 #2E238A #3E2FBB #6154D4

Accessibility & contrast

On white

12.18
#2E238A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2E238A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E238A
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E238A#FFFFFF#000000##FFFFFF
##2E238A1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398D
Deuteranopia (green-blind)
#003188
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2e238a;
/* rgb */ color: rgb(46, 35, 138);
/* oklch */ color: oklch(34.7% 0.162 278.6);
Tailwind
colors: {
  custom: {
    50: '#7460ad',
    500: '#2e238a',
    950: '#000000',
  },
}
SCSS
$custom: #2e238a;
$custom-light: #7460ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2e238a",
  "rgb": {
    "r": 46,
    "g": 35,
    "b": 138
  },
  "hsl": {
    "h": 246.408,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34678,
    "c": 0.1616,
    "h": 278.6
  },
  "luminance": 0.03618
}

Semantic roles & 50–950 ramp

primary
#2E238A
secondary
#ADB751
accent
#E345D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2E238A

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

Preview Lab → · Contrast checker → · Palette generator →

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