#2D208F#2D208F

#2D208F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.171 H 277.9°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#2D208F
RGBrgb(45, 32, 143)
HSLhsl(247, 63%, 34%)
HSVhsv(247, 78%, 56%)
CMYKcmyk(68.5%, 77.6%, 0%, 43.9%)
CIE-LABlab(22.21, 40.35, -58.72)
CIE-LCHlch(22.21, 71.25, 304.50°)
OKLaboklab(34.71% 0.0235 -0.1696)
OKLCHoklch(34.71% 0.171 277.9)
XYZxyz(6.5550, 3.5735, 26.3256)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D208F #828F20
analogous
#204B8F #2D208F #65208F
triadic
#2D208F #8F2D20 #208F2D
tetradic
#2D208F #8F204B #828F20 #208F65
square
#2D208F #8F204B #828F20 #208F65
split-complementary
#2D208F #8F6520 #4B8F20
monochromatic
#0E0A2B #1D155D #2D208F #3D2BC1 #6151D8

Accessibility & contrast

On white

12.25
#2D208F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2D208F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D208F
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D208F#FFFFFF#000000##FFFFFF
##2D208F1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00308D
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2d208f;
/* rgb */ color: rgb(45, 32, 143);
/* oklch */ color: oklch(34.7% 0.171 277.9);
Tailwind
colors: {
  custom: {
    50: '#755eb1',
    500: '#2d208f',
    950: '#000000',
  },
}
SCSS
$custom: #2d208f;
$custom-light: #755eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d208f",
  "rgb": {
    "r": 45,
    "g": 32,
    "b": 143
  },
  "hsl": {
    "h": 247.027,
    "s": 63.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34705,
    "c": 0.17125,
    "h": 277.9
  },
  "luminance": 0.03574
}

Semantic roles & 50–950 ramp

primary
#2D208F
secondary
#AFBB4F
accent
#E641D3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2D208F

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

Preview Lab → · Contrast checker → · Palette generator →

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