#2D2183#2D2183

#2D2183 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.155 H 279.5°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#2D2183
RGBrgb(45, 33, 131)
HSLhsl(247, 60%, 32%)
HSVhsv(247, 75%, 51%)
CMYKcmyk(65.6%, 74.8%, 0%, 48.6%)
CIE-LABlab(21.15, 35.84, -52.96)
CIE-LCHlch(21.15, 63.95, 304.09°)
OKLaboklab(33.58% 0.0257 -0.1528)
OKLCHoklch(33.58% 0.155 279.5)
XYZxyz(5.7215, 3.2838, 21.8007)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2183 #778321
analogous
#214683 #2D2183 #5E2183
triadic
#2D2183 #832D21 #21832D
tetradic
#2D2183 #832146 #778321 #21835E
square
#2D2183 #832146 #778321 #21835E
split-complementary
#2D2183 #835E21 #468321
monochromatic
#0B0821 #1C1552 #2D2183 #3E2DB4 #5D4CD2

Accessibility & contrast

On white

12.68
#2D2183 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2D2183 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2183
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2183#FFFFFF#000000##FFFFFF
##2D21831.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003686
Deuteranopia (green-blind)
#002F81
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2d2183;
/* rgb */ color: rgb(45, 33, 131);
/* oklch */ color: oklch(33.6% 0.155 279.5);
Tailwind
colors: {
  custom: {
    50: '#725ea8',
    500: '#2d2183',
    950: '#000000',
  },
}
SCSS
$custom: #2d2183;
$custom-light: #725ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2183",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 131
  },
  "hsl": {
    "h": 247.347,
    "s": 59.756,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33577,
    "c": 0.15496,
    "h": 279.5
  },
  "luminance": 0.03284
}

Semantic roles & 50–950 ramp

primary
#2D2183
secondary
#A8B54B
accent
#E345D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D2183

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

Preview Lab → · Contrast checker → · Palette generator →

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