#2D288B#2D288B

#2D288B is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.5% C 0.158 H 277.0°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#2D288B
RGBrgb(45, 40, 139)
HSLhsl(243, 55%, 35%)
HSVhsv(243, 71%, 55%)
CMYKcmyk(67.6%, 71.2%, 0%, 45.5%)
CIE-LABlab(23.47, 34.34, -54.16)
CIE-LCHlch(23.47, 64.13, 302.38°)
OKLaboklab(35.48% 0.0191 -0.1563)
OKLCHoklch(35.48% 0.158 277)
XYZxyz(6.4997, 3.9390, 24.8389)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D288B #868B28
analogous
#28558B #2D288B #5E288B
triadic
#2D288B #8B2D28 #288B2D
tetradic
#2D288B #8B2855 #868B28 #288B5E
square
#2D288B #8B2855 #868B28 #288B5E
split-complementary
#2D288B #8B5E28 #558B28
monochromatic
#0E0D2C #1E1A5B #2D288B #3C36BB #635DD0

Accessibility & contrast

On white

11.74
#2D288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2D288B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D288B
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D288B#FFFFFF#000000##FFFFFF
##2D288B1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003489
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2d288b;
/* rgb */ color: rgb(45, 40, 139);
/* oklch */ color: oklch(35.5% 0.158 277.0);
Tailwind
colors: {
  custom: {
    50: '#7363ae',
    500: '#2d288b',
    950: '#000000',
  },
}
SCSS
$custom: #2d288b;
$custom-light: #7363ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2d288b",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 243.03,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35478,
    "c": 0.15751,
    "h": 277
  },
  "luminance": 0.0394
}

Semantic roles & 50–950 ramp

primary
#2D288B
secondary
#B1B659
accent
#DF49D7
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2D288B

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

Preview Lab → · Contrast checker → · Palette generator →

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