#2D287D#2D287D

#2D287D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.1% C 0.139 H 278.7°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#2D287D
RGBrgb(45, 40, 125)
HSLhsl(244, 52%, 32%)
HSVhsv(244, 68%, 49%)
CMYKcmyk(64%, 68%, 0%, 51%)
CIE-LABlab(22.14, 29.46, -47.53)
CIE-LCHlch(22.14, 55.92, 301.80°)
OKLaboklab(34.12% 0.021 -0.1369)
OKLCHoklch(34.12% 0.139 278.7)
XYZxyz(5.5415, 3.5557, 19.7924)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D287D #787D28
analogous
#284E7D #2D287D #57287D
triadic
#2D287D #7D2D28 #287D2D
tetradic
#2D287D #7D284E #787D28 #287D57
square
#2D287D #7D284E #787D28 #287D57
split-complementary
#2D287D #7D5728 #4E7D28
monochromatic
#0C0A20 #1C194F #2D287D #3E37AB #5D56C9

Accessibility & contrast

On white

12.27
#2D287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2D287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D287D
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D287D#FFFFFF#000000##FFFFFF
##2D287D1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#00327B
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2d287d;
/* rgb */ color: rgb(45, 40, 125);
/* oklch */ color: oklch(34.1% 0.139 278.7);
Tailwind
colors: {
  custom: {
    50: '#7062a3',
    500: '#2d287d',
    950: '#000000',
  },
}
SCSS
$custom: #2d287d;
$custom-light: #7062a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d287d",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 243.529,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34116,
    "c": 0.13854,
    "h": 278.7
  },
  "luminance": 0.03556
}

Semantic roles & 50–950 ramp

primary
#2D287D
secondary
#A9AE53
accent
#DB4DD3
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2D287D

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

Preview Lab → · Contrast checker → · Palette generator →

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