#2D2170#2D2170

#2D2170 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.130 H 283.0°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#2D2170
RGBrgb(45, 33, 112)
HSLhsl(249, 54%, 28%)
HSVhsv(249, 71%, 44%)
CMYKcmyk(59.8%, 70.5%, 0%, 56.1%)
CIE-LABlab(19.29, 29.44, -43.88)
CIE-LCHlch(19.29, 52.84, 303.86°)
OKLaboklab(31.68% 0.0292 -0.1262)
OKLCHoklch(31.68% 0.13 283)
XYZxyz(4.5498, 2.8152, 15.6297)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2170 #647021
analogous
#213C70 #2D2170 #542170
triadic
#2D2170 #702D21 #21702D
tetradic
#2D2170 #70213C #647021 #217054
square
#2D2170 #70213C #647021 #217054
split-complementary
#2D2170 #705421 #3C7021
monochromatic
#090718 #1A1341 #2D2170 #402F9F #5844C8

Accessibility & contrast

On white

13.44
#2D2170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2D2170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2170
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2170#FFFFFF#000000##FFFFFF
##2D21701.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003172
Deuteranopia (green-blind)
#002C6E
Tritanopia (blue-blind)
#093545
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2d2170;
/* rgb */ color: rgb(45, 33, 112);
/* oklch */ color: oklch(31.7% 0.130 283.0);
Tailwind
colors: {
  custom: {
    50: '#6e5d9a',
    500: '#2d2170',
    950: '#000000',
  },
}
SCSS
$custom: #2d2170;
$custom-light: #6e5d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2170",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 249.114,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3168,
    "c": 0.12958,
    "h": 283
  },
  "luminance": 0.02815
}

Semantic roles & 50–950 ramp

primary
#2D2170
secondary
#96A449
accent
#DE4AC7
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2D2170

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

Preview Lab → · Contrast checker → · Palette generator →

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