#2E287E#2E287E

#2E287E is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.3% C 0.140 H 279.2°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#2E287E
RGBrgb(46, 40, 126)
HSLhsl(244, 52%, 33%)
HSVhsv(244, 68%, 49%)
CMYKcmyk(63.5%, 68.3%, 0%, 50.6%)
CIE-LABlab(22.32, 29.98, -47.87)
CIE-LCHlch(22.32, 56.48, 302.05°)
OKLaboklab(34.29% 0.0223 -0.1379)
OKLCHoklch(34.29% 0.14 279.2)
XYZxyz(5.6502, 3.6044, 20.1326)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E287E #787E28
analogous
#284D7E #2E287E #59287E
triadic
#2E287E #7E2E28 #287E2E
tetradic
#2E287E #7E284D #787E28 #287E59
square
#2E287E #7E284D #787E28 #287E59
split-complementary
#2E287E #7E5928 #4D7E28
monochromatic
#0C0B21 #1D1950 #2E287E #3F37AC #5F57CA

Accessibility & contrast

On white

12.20
#2E287E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E287E
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E287E#FFFFFF#000000##FFFFFF
##2E287E1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#00327C
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2e287e;
/* rgb */ color: rgb(46, 40, 126);
/* oklch */ color: oklch(34.3% 0.140 279.2);
Tailwind
colors: {
  custom: {
    50: '#7162a4',
    500: '#2e287e',
    950: '#000000',
  },
}
SCSS
$custom: #2e287e;
$custom-light: #7162a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e287e",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 126
  },
  "hsl": {
    "h": 244.186,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.3429,
    "c": 0.13971,
    "h": 279.2
  },
  "luminance": 0.03605
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E287E

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

Preview Lab → · Contrast checker → · Palette generator →

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