#2D208C#2D208C

#2D208C is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.167 H 278.3°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#2D208C
RGBrgb(45, 32, 140)
HSLhsl(247, 63%, 34%)
HSVhsv(247, 77%, 55%)
CMYKcmyk(67.9%, 77.1%, 0%, 45.1%)
CIE-LABlab(21.89, 39.38, -57.38)
CIE-LCHlch(21.89, 69.60, 304.46°)
OKLaboklab(34.38% 0.0242 -0.1657)
OKLCHoklch(34.38% 0.167 278.3)
XYZxyz(6.3308, 3.4838, 25.1447)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D208C #7F8C20
analogous
#20498C #2D208C #63208C
triadic
#2D208C #8C2D20 #208C2D
tetradic
#2D208C #8C2049 #7F8C20 #208C63
square
#2D208C #8C2049 #7F8C20 #208C63
split-complementary
#2D208C #8C6320 #498C20
monochromatic
#0D0928 #1D155A #2D208C #3D2BBE #6050D7

Accessibility & contrast

On white

12.38
#2D208C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2D208C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D208C
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D208C#FFFFFF#000000##FFFFFF
##2D208C1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#00308A
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2d208c;
/* rgb */ color: rgb(45, 32, 140);
/* oklch */ color: oklch(34.4% 0.167 278.3);
Tailwind
colors: {
  custom: {
    50: '#745eaf',
    500: '#2d208c',
    950: '#000000',
  },
}
SCSS
$custom: #2d208c;
$custom-light: #745eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#2d208c",
  "rgb": {
    "r": 45,
    "g": 32,
    "b": 140
  },
  "hsl": {
    "h": 247.222,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34382,
    "c": 0.16749,
    "h": 278.3
  },
  "luminance": 0.03484
}

Semantic roles & 50–950 ramp

primary
#2D208C
secondary
#ADBA4E
accent
#E642D2
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D208C

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

Preview Lab → · Contrast checker → · Palette generator →

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