#2D287F#2D287F

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

Color values

HEX#2D287F
RGBrgb(45, 40, 127)
HSLhsl(243, 52%, 33%)
HSVhsv(243, 69%, 50%)
CMYKcmyk(64.6%, 68.5%, 0%, 50.2%)
CIE-LABlab(22.33, 30.16, -48.49)
CIE-LCHlch(22.33, 57.11, 301.88°)
OKLaboklab(34.31% 0.0208 -0.1398)
OKLCHoklch(34.31% 0.141 278.5)
XYZxyz(5.6705, 3.6073, 20.4720)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D287F #7A7F28
analogous
#284F7F #2D287F #58287F
triadic
#2D287F #7F2D28 #287F2D
tetradic
#2D287F #7F284F #7A7F28 #287F58
square
#2D287F #7F284F #7A7F28 #287F58
split-complementary
#2D287F #7F5828 #4F7F28
monochromatic
#0C0B22 #1D1950 #2D287F #3D37AE #5E57CA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D287F#FFFFFF#000000##FFFFFF
##2D287F1.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)
#003982
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#003F50
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2d287f;
/* rgb */ color: rgb(45, 40, 127);
/* oklch */ color: oklch(34.3% 0.141 278.5);
Tailwind
colors: {
  custom: {
    50: '#7062a5',
    500: '#2d287f',
    950: '#000000',
  },
}
SCSS
$custom: #2d287f;
$custom-light: #7062a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d287f",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 127
  },
  "hsl": {
    "h": 243.448,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34306,
    "c": 0.14131,
    "h": 278.5
  },
  "luminance": 0.03608
}

Semantic roles & 50–950 ramp

primary
#2D287F
secondary
#AAAF54
accent
#DC4CD3
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2D287F

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

Preview Lab → · Contrast checker → · Palette generator →

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