#2E285B#2E285B

#2E285B is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.3% C 0.088 H 285.5°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#2E285B
RGBrgb(46, 40, 91)
HSLhsl(247, 39%, 26%)
HSVhsv(247, 56%, 36%)
CMYKcmyk(49.5%, 56%, 0%, 64.3%)
CIE-LABlab(19.45, 17.78, -29.86)
CIE-LCHlch(19.45, 34.75, 300.77°)
OKLaboklab(31.28% 0.0235 -0.085)
OKLCHoklch(31.28% 0.088 285.5)
XYZxyz(3.7733, 2.8536, 10.2475)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E285B #555B28
analogous
#283B5B #2E285B #47285B
triadic
#2E285B #5B2E28 #285B2E
tetradic
#2E285B #5B283B #555B28 #285B47
square
#2E285B #5B283B #555B28 #285B47
split-complementary
#2E285B #5B4728 #3B5B28
monochromatic
#0B0915 #191530 #2E285B #433B86 #594DB0

Accessibility & contrast

On white

13.37
#2E285B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2E285B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E285B
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E285B#FFFFFF#000000##FFFFFF
##2E285B1.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10315D
Deuteranopia (green-blind)
#0E2E5A
Tritanopia (blue-blind)
#1F333D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2e285b;
/* rgb */ color: rgb(46, 40, 91);
/* oklch */ color: oklch(31.3% 0.088 285.5);
Tailwind
colors: {
  custom: {
    50: '#6a628a',
    500: '#2e285b',
    950: '#000000',
  },
}
SCSS
$custom: #2e285b;
$custom-light: #6a628a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e285b",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 91
  },
  "hsl": {
    "h": 247.059,
    "s": 38.931,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31277,
    "c": 0.08815,
    "h": 285.5
  },
  "luminance": 0.02854
}

Semantic roles & 50–950 ramp

primary
#2E285B
secondary
#878E51
accent
#CF59C1
background
#F6F5F8
surface
#EBEAF0
border
#C6C6CB
text
#07050B
muted
#7A797C

Preview Lab

Preview with #2E285B

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

Preview Lab → · Contrast checker → · Palette generator →

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