#2D286B#2D286B

#2D286B is a dark, moderate blue. Relative luminance 0.031; OKLCH L 32.5% C 0.113 H 281.5°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#2D286B
RGBrgb(45, 40, 107)
HSLhsl(244, 46%, 29%)
HSVhsv(244, 63%, 42%)
CMYKcmyk(57.9%, 62.6%, 0%, 58%)
CIE-LABlab(20.58, 23.11, -38.53)
CIE-LCHlch(20.58, 44.93, 300.96°)
OKLaboklab(32.49% 0.0224 -0.1105)
OKLCHoklch(32.49% 0.113 281.5)
XYZxyz(4.4940, 3.1367, 14.2757)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D286B #666B28
analogous
#28456B #2D286B #4F286B
triadic
#2D286B #6B2D28 #286B2D
tetradic
#2D286B #6B2845 #666B28 #286B4F
square
#2D286B #6B2845 #666B28 #286B4F
split-complementary
#2D286B #6B4F28 #456B28
monochromatic
#090816 #1A173E #2D286B #403998 #5850BE

Accessibility & contrast

On white

12.90
#2D286B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2D286B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D286B
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D286B#FFFFFF#000000##FFFFFF
##2D286B1.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346D
Deuteranopia (green-blind)
#002F6A
Tritanopia (blue-blind)
#103845
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2d286b;
/* rgb */ color: rgb(45, 40, 107);
/* oklch */ color: oklch(32.5% 0.113 281.5);
Tailwind
colors: {
  custom: {
    50: '#6c6296',
    500: '#2d286b',
    950: '#000000',
  },
}
SCSS
$custom: #2d286b;
$custom-light: #6c6296;
$custom-dark: #000000;
JSON
{
  "hex": "#2d286b",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 107
  },
  "hsl": {
    "h": 244.478,
    "s": 45.578,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32487,
    "c": 0.11275,
    "h": 281.5
  },
  "luminance": 0.03137
}

Semantic roles & 50–950 ramp

primary
#2D286B
secondary
#989D51
accent
#D553CB
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050D
muted
#7A797E

Preview Lab

Preview with #2D286B

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

Preview Lab → · Contrast checker → · Palette generator →

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