#2E238B#2E238B

#2E238B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.163 H 278.5°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#2E238B
RGBrgb(46, 35, 139)
HSLhsl(246, 60%, 34%)
HSVhsv(246, 75%, 55%)
CMYKcmyk(66.9%, 74.8%, 0%, 45.5%)
CIE-LABlab(22.47, 37.47, -55.80)
CIE-LCHlch(22.47, 67.21, 303.88°)
OKLaboklab(34.78% 0.024 -0.1611)
OKLCHoklch(34.78% 0.163 278.5)
XYZxyz(6.3864, 3.6465, 24.7884)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E238B #808B23
analogous
#234C8B #2E238B #62238B
triadic
#2E238B #8B2E23 #238B2E
tetradic
#2E238B #8B234C #808B23 #238B62
square
#2E238B #8B234C #808B23 #238B62
split-complementary
#2E238B #8B6223 #4C8B23
monochromatic
#0E0A29 #1E175A #2E238B #3E2FBC #6254D4

Accessibility & contrast

On white

12.14
#2E238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2E238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E238B
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E238B#FFFFFF#000000##FFFFFF
##2E238B1.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003189
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2e238b;
/* rgb */ color: rgb(46, 35, 139);
/* oklch */ color: oklch(34.8% 0.163 278.5);
Tailwind
colors: {
  custom: {
    50: '#7460ae',
    500: '#2e238b',
    950: '#000000',
  },
}
SCSS
$custom: #2e238b;
$custom-light: #7460ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2e238b",
  "rgb": {
    "r": 46,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 246.346,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34782,
    "c": 0.16288,
    "h": 278.5
  },
  "luminance": 0.03647
}

Semantic roles & 50–950 ramp

primary
#2E238B
secondary
#ADB852
accent
#E345D2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2E238B

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

Preview Lab → · Contrast checker → · Palette generator →

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