#2E287F#2E287F

#2E287F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.4% C 0.141 H 279.0°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#2E287F
RGBrgb(46, 40, 127)
HSLhsl(244, 52%, 33%)
HSVhsv(244, 69%, 50%)
CMYKcmyk(63.8%, 68.5%, 0%, 50.2%)
CIE-LABlab(22.41, 30.32, -48.36)
CIE-LCHlch(22.41, 57.08, 302.09°)
OKLaboklab(34.39% 0.0222 -0.1393)
OKLCHoklch(34.39% 0.141 279)
XYZxyz(5.7150, 3.6303, 20.4741)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E287F #797F28
analogous
#284D7F #2E287F #59287F
triadic
#2E287F #7F2E28 #287F2E
tetradic
#2E287F #7F284D #797F28 #287F59
square
#2E287F #7F284D #797F28 #287F59
split-complementary
#2E287F #7F5928 #4D7F28
monochromatic
#0C0B22 #1D1950 #2E287F #3F37AE #5F57CA

Accessibility & contrast

On white

12.17
#2E287F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2E287F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E287F
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E287F#FFFFFF#000000##FFFFFF
##2E287F1.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#003E50
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2e287f;
/* rgb */ color: rgb(46, 40, 127);
/* oklch */ color: oklch(34.4% 0.141 279.0);
Tailwind
colors: {
  custom: {
    50: '#7162a5',
    500: '#2e287f',
    950: '#000000',
  },
}
SCSS
$custom: #2e287f;
$custom-light: #7162a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e287f",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 127
  },
  "hsl": {
    "h": 244.138,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34385,
    "c": 0.14109,
    "h": 279
  },
  "luminance": 0.03631
}

Semantic roles & 50–950 ramp

primary
#2E287F
secondary
#A9AF54
accent
#DC4CD2
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2E287F

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

Preview Lab → · Contrast checker → · Palette generator →

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