#2D208B#2D208B

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

Color values

HEX#2D208B
RGBrgb(45, 32, 139)
HSLhsl(247, 63%, 34%)
HSVhsv(247, 77%, 55%)
CMYKcmyk(67.6%, 77%, 0%, 45.5%)
CIE-LABlab(21.78, 39.05, -56.94)
CIE-LCHlch(21.78, 69.04, 304.45°)
OKLaboklab(34.28% 0.0245 -0.1644)
OKLCHoklch(34.28% 0.166 278.5)
XYZxyz(6.2574, 3.4545, 24.7581)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D208B #7E8B20
analogous
#20488B #2D208B #62208B
triadic
#2D208B #8B2D20 #208B2D
tetradic
#2D208B #8B2048 #7E8B20 #208B62
square
#2D208B #8B2048 #7E8B20 #208B62
split-complementary
#2D208B #8B6220 #488B20
monochromatic
#0D0928 #1D1559 #2D208B #3D2BBD #5F4FD6

Accessibility & contrast

On white

12.42
#2D208B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2D208B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D208B
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D208B#FFFFFF#000000##FFFFFF
##2D208B1.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#003089
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2d208b;
/* rgb */ color: rgb(45, 32, 139);
/* oklch */ color: oklch(34.3% 0.166 278.5);
Tailwind
colors: {
  custom: {
    50: '#745eae',
    500: '#2d208b',
    950: '#000000',
  },
}
SCSS
$custom: #2d208b;
$custom-light: #745eae;
$custom-dark: #000000;
JSON
{
  "hex": "#2d208b",
  "rgb": {
    "r": 45,
    "g": 32,
    "b": 139
  },
  "hsl": {
    "h": 247.29,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34275,
    "c": 0.16624,
    "h": 278.5
  },
  "luminance": 0.03455
}

Semantic roles & 50–950 ramp

primary
#2D208B
secondary
#ACBA4D
accent
#E642D2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D208B

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

Preview Lab → · Contrast checker → · Palette generator →

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