#2E288F#2E288F

#2E288F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.0% C 0.163 H 277.0°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#2E288F
RGBrgb(46, 40, 143)
HSLhsl(243, 56%, 36%)
HSVhsv(243, 72%, 56%)
CMYKcmyk(67.8%, 72%, 0%, 43.9%)
CIE-LABlab(23.94, 35.85, -55.87)
CIE-LCHlch(23.94, 66.38, 302.69°)
OKLaboklab(35.95% 0.0198 -0.1613)
OKLCHoklch(35.95% 0.163 277)
XYZxyz(6.8418, 4.0810, 26.4084)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E288F #898F28
analogous
#28558F #2E288F #61288F
triadic
#2E288F #8F2E28 #288F2E
tetradic
#2E288F #8F2855 #898F28 #288F61
square
#2E288F #8F2855 #898F28 #288F61
split-complementary
#2E288F #8F6128 #558F28
monochromatic
#0F0D2F #1F1B5F #2E288F #3D35BF #665FD2

Accessibility & contrast

On white

11.56
#2E288F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2E288F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E288F
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E288F#FFFFFF#000000##FFFFFF
##2E288F1.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00348D
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2e288f;
/* rgb */ color: rgb(46, 40, 143);
/* oklch */ color: oklch(36.0% 0.163 277.0);
Tailwind
colors: {
  custom: {
    50: '#7463b1',
    500: '#2e288f',
    950: '#000000',
  },
}
SCSS
$custom: #2e288f;
$custom-light: #7463b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e288f",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 143
  },
  "hsl": {
    "h": 243.495,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35953,
    "c": 0.16253,
    "h": 277
  },
  "luminance": 0.04082
}

Semantic roles & 50–950 ramp

primary
#2E288F
secondary
#B2B85B
accent
#E048D7
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2E288F

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

Preview Lab → · Contrast checker → · Palette generator →

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