#2E288B#2E288B

#2E288B is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.6% C 0.157 H 277.5°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#2E288B
RGBrgb(46, 40, 139)
HSLhsl(244, 55%, 35%)
HSVhsv(244, 71%, 55%)
CMYKcmyk(66.9%, 71.2%, 0%, 45.5%)
CIE-LABlab(23.55, 34.48, -54.03)
CIE-LCHlch(23.55, 64.09, 302.54°)
OKLaboklab(35.55% 0.0204 -0.1559)
OKLCHoklch(35.55% 0.157 277.5)
XYZxyz(6.5442, 3.9620, 24.8410)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E288B #858B28
analogous
#28548B #2E288B #5F288B
triadic
#2E288B #8B2E28 #288B2E
tetradic
#2E288B #8B2854 #858B28 #288B5F
square
#2E288B #8B2854 #858B28 #288B5F
split-complementary
#2E288B #8B5F28 #548B28
monochromatic
#0F0D2C #1E1A5B #2E288B #3E36BB #645DD0

Accessibility & contrast

On white

11.71
#2E288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2E288B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E288B
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E288B#FFFFFF#000000##FFFFFF
##2E288B1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003489
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2e288b;
/* rgb */ color: rgb(46, 40, 139);
/* oklch */ color: oklch(35.6% 0.157 277.5);
Tailwind
colors: {
  custom: {
    50: '#7463ae',
    500: '#2e288b',
    950: '#000000',
  },
}
SCSS
$custom: #2e288b;
$custom-light: #7463ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2e288b",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 243.636,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35552,
    "c": 0.15727,
    "h": 277.5
  },
  "luminance": 0.03963
}

Semantic roles & 50–950 ramp

primary
#2E288B
secondary
#B0B659
accent
#DF49D6
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2E288B

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

Preview Lab → · Contrast checker → · Palette generator →

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