#2E287D#2E287D

#2E287D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.2% C 0.138 H 279.3°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#2E287D
RGBrgb(46, 40, 125)
HSLhsl(244, 52%, 32%)
HSVhsv(244, 68%, 49%)
CMYKcmyk(63.2%, 68%, 0%, 51%)
CIE-LABlab(22.23, 29.63, -47.39)
CIE-LCHlch(22.23, 55.89, 302.01°)
OKLaboklab(34.2% 0.0224 -0.1365)
OKLCHoklch(34.2% 0.138 279.3)
XYZxyz(5.5860, 3.5787, 19.7945)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E287D #777D28
analogous
#284D7D #2E287D #58287D
triadic
#2E287D #7D2E28 #287D2E
tetradic
#2E287D #7D284D #777D28 #287D58
square
#2E287D #7D284D #777D28 #287D58
split-complementary
#2E287D #7D5828 #4D7D28
monochromatic
#0C0A20 #1D194F #2E287D #3F37AB #5E56C9

Accessibility & contrast

On white

12.24
#2E287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E287D
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E287D#FFFFFF#000000##FFFFFF
##2E287D1.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#00327B
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2e287d;
/* rgb */ color: rgb(46, 40, 125);
/* oklch */ color: oklch(34.2% 0.138 279.3);
Tailwind
colors: {
  custom: {
    50: '#7162a3',
    500: '#2e287d',
    950: '#000000',
  },
}
SCSS
$custom: #2e287d;
$custom-light: #7162a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e287d",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 244.235,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34196,
    "c": 0.13832,
    "h": 279.3
  },
  "luminance": 0.03579
}

Semantic roles & 50–950 ramp

primary
#2E287D
secondary
#A8AE53
accent
#DB4DD1
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2E287D

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

Preview Lab → · Contrast checker → · Palette generator →

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