#2D2172#2D2172

#2D2172 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.9% C 0.132 H 282.6°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#2D2172
RGBrgb(45, 33, 114)
HSLhsl(249, 55%, 29%)
HSVhsv(249, 71%, 45%)
CMYKcmyk(60.5%, 71.1%, 0%, 55.3%)
CIE-LABlab(19.48, 30.12, -44.86)
CIE-LCHlch(19.48, 54.04, 303.88°)
OKLaboklab(31.87% 0.0289 -0.1291)
OKLCHoklch(31.87% 0.132 282.6)
XYZxyz(4.6624, 2.8602, 16.2227)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2172 #667221
analogous
#213E72 #2D2172 #562172
triadic
#2D2172 #722D21 #21722D
tetradic
#2D2172 #72213E #667221 #217256
square
#2D2172 #72213E #667221 #217256
split-complementary
#2D2172 #725621 #3E7221
monochromatic
#090718 #1A1343 #2D2172 #402FA1 #5844C9

Accessibility & contrast

On white

13.36
#2D2172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2D2172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2172
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2172#FFFFFF#000000##FFFFFF
##2D21721.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003274
Deuteranopia (green-blind)
#002C70
Tritanopia (blue-blind)
#063646
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2d2172;
/* rgb */ color: rgb(45, 33, 114);
/* oklch */ color: oklch(31.9% 0.132 282.6);
Tailwind
colors: {
  custom: {
    50: '#6e5d9b',
    500: '#2d2172',
    950: '#000000',
  },
}
SCSS
$custom: #2d2172;
$custom-light: #6e5d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2172",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 248.889,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31872,
    "c": 0.13233,
    "h": 282.6
  },
  "luminance": 0.02861
}

Semantic roles & 50–950 ramp

primary
#2D2172
secondary
#98A549
accent
#DE49C8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2D2172

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

Preview Lab → · Contrast checker → · Palette generator →

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