#2E288D#2E288D

#2E288D is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.8% C 0.160 H 277.2°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#2E288D
RGBrgb(46, 40, 141)
HSLhsl(244, 56%, 35%)
HSVhsv(244, 72%, 55%)
CMYKcmyk(67.4%, 71.6%, 0%, 44.7%)
CIE-LABlab(23.74, 35.17, -54.95)
CIE-LCHlch(23.74, 65.24, 302.62°)
OKLaboklab(35.75% 0.0201 -0.1586)
OKLCHoklch(35.75% 0.16 277.2)
XYZxyz(6.6917, 4.0209, 25.6176)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E288D #878D28
analogous
#28558D #2E288D #60288D
triadic
#2E288D #8D2E28 #288D2E
tetradic
#2E288D #8D2855 #878D28 #288D60
square
#2E288D #8D2855 #878D28 #288D60
split-complementary
#2E288D #8D6028 #558D28
monochromatic
#0F0D2E #1E1A5D #2E288D #3E36BD #655ED1

Accessibility & contrast

On white

11.64
#2E288D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2E288D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E288D
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E288D#FFFFFF#000000##FFFFFF
##2E288D1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#00348B
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2e288d;
/* rgb */ color: rgb(46, 40, 141);
/* oklch */ color: oklch(35.8% 0.160 277.2);
Tailwind
colors: {
  custom: {
    50: '#7463af',
    500: '#2e288d',
    950: '#000000',
  },
}
SCSS
$custom: #2e288d;
$custom-light: #7463af;
$custom-dark: #000000;
JSON
{
  "hex": "#2e288d",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 141
  },
  "hsl": {
    "h": 243.564,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35752,
    "c": 0.15991,
    "h": 277.2
  },
  "luminance": 0.04022
}

Semantic roles & 50–950 ramp

primary
#2E288D
secondary
#B1B75A
accent
#DF49D6
background
#F7F5FA
surface
#EEEAF5
border
#C9C6CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #2E288D

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

Preview Lab → · Contrast checker → · Palette generator →

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