#2D1C8C#2D1C8C

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

Color values

HEX#2D1C8C
RGBrgb(45, 28, 140)
HSLhsl(249, 67%, 33%)
HSVhsv(249, 80%, 55%)
CMYKcmyk(67.9%, 80%, 0%, 45.1%)
CIE-LABlab(21.14, 41.52, -58.62)
CIE-LCHlch(21.14, 71.83, 305.31°)
OKLaboklab(33.86% 0.0266 -0.1693)
OKLCHoklch(33.86% 0.171 278.9)
XYZxyz(6.2295, 3.2813, 25.1109)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1C8C #7B8C1C
analogous
#1C438C #2D1C8C #651C8C
triadic
#2D1C8C #8C2D1C #1C8C2D
tetradic
#2D1C8C #8C1C43 #7B8C1C #1C8C65
square
#2D1C8C #8C1C43 #7B8C1C #1C8C65
split-complementary
#2D1C8C #8C651C #438C1C
monochromatic
#0C0826 #1D1259 #2D1C8C #3D26BF #5E48DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D1C8C#FFFFFF#000000##FFFFFF
##2D1C8C1.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)
#00378F
Deuteranopia (green-blind)
#002E8A
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2d1c8c;
/* rgb */ color: rgb(45, 28, 140);
/* oklch */ color: oklch(33.9% 0.171 278.9);
Tailwind
colors: {
  custom: {
    50: '#745baf',
    500: '#2d1c8c',
    950: '#000000',
  },
}
SCSS
$custom: #2d1c8c;
$custom-light: #745baf;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1c8c",
  "rgb": {
    "r": 45,
    "g": 28,
    "b": 140
  },
  "hsl": {
    "h": 249.107,
    "s": 66.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33857,
    "c": 0.17136,
    "h": 278.9
  },
  "luminance": 0.03282
}

Semantic roles & 50–950 ramp

primary
#2D1C8C
secondary
#ABBC48
accent
#EA3ED0
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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