#2E248B#2E248B

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

Color values

HEX#2E248B
RGBrgb(46, 36, 139)
HSLhsl(246, 59%, 34%)
HSVhsv(246, 74%, 55%)
CMYKcmyk(66.9%, 74.1%, 0%, 45.5%)
CIE-LABlab(22.68, 36.89, -55.46)
CIE-LCHlch(22.68, 66.60, 303.63°)
OKLaboklab(34.93% 0.0233 -0.1601)
OKLCHoklch(34.93% 0.162 278.3)
XYZxyz(6.4163, 3.7061, 24.7983)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E248B #818B24
analogous
#244E8B #2E248B #62248B
triadic
#2E248B #8B2E24 #248B2E
tetradic
#2E248B #8B244E #818B24 #248B62
square
#2E248B #8B244E #818B24 #248B62
split-complementary
#2E248B #8B6224 #4E8B24
monochromatic
#0E0B2A #1E175A #2E248B #3E31BC #6256D3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2E248B#FFFFFF#000000##FFFFFF
##2E248B1.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)
#003A8E
Deuteranopia (green-blind)
#003289
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2e248b;
/* rgb */ color: rgb(46, 36, 139);
/* oklch */ color: oklch(34.9% 0.162 278.3);
Tailwind
colors: {
  custom: {
    50: '#7460ae',
    500: '#2e248b',
    950: '#000000',
  },
}
SCSS
$custom: #2e248b;
$custom-light: #7460ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2e248b",
  "rgb": {
    "r": 46,
    "g": 36,
    "b": 139
  },
  "hsl": {
    "h": 245.825,
    "s": 58.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34931,
    "c": 0.1618,
    "h": 278.3
  },
  "luminance": 0.03707
}

Semantic roles & 50–950 ramp

primary
#2E248B
secondary
#AEB753
accent
#E246D3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2E248B

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

Preview Lab → · Contrast checker → · Palette generator →

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