#2D287E#2D287E

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

Color values

HEX#2D287E
RGBrgb(45, 40, 126)
HSLhsl(243, 52%, 33%)
HSVhsv(243, 68%, 49%)
CMYKcmyk(64.3%, 68.3%, 0%, 50.6%)
CIE-LABlab(22.24, 29.81, -48.01)
CIE-LCHlch(22.24, 56.52, 301.84°)
OKLaboklab(34.21% 0.0209 -0.1383)
OKLCHoklch(34.21% 0.14 278.6)
XYZxyz(5.6057, 3.5814, 20.1305)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D287E #797E28
analogous
#284E7E #2D287E #58287E
triadic
#2D287E #7E2D28 #287E2D
tetradic
#2D287E #7E284E #797E28 #287E58
square
#2D287E #7E284E #797E28 #287E58
split-complementary
#2D287E #7E5828 #4E7E28
monochromatic
#0C0B21 #1C1950 #2D287E #3E37AC #5D57CA

Accessibility & contrast

On white

12.23
#2D287E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D287E
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D287E#FFFFFF#000000##FFFFFF
##2D287E1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.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: #2d287e;
/* rgb */ color: rgb(45, 40, 126);
/* oklch */ color: oklch(34.2% 0.140 278.6);
Tailwind
colors: {
  custom: {
    50: '#7062a4',
    500: '#2d287e',
    950: '#000000',
  },
}
SCSS
$custom: #2d287e;
$custom-light: #7062a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d287e",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 126
  },
  "hsl": {
    "h": 243.488,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34211,
    "c": 0.13992,
    "h": 278.6
  },
  "luminance": 0.03582
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D287E

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

Preview Lab → · Contrast checker → · Palette generator →

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