#2D1C8E#2D1C8E

#2D1C8E is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.1% C 0.174 H 278.6°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#2D1C8E
RGBrgb(45, 28, 142)
HSLhsl(249, 67%, 33%)
HSVhsv(249, 80%, 56%)
CMYKcmyk(68.3%, 80.3%, 0%, 44.3%)
CIE-LABlab(21.36, 42.15, -59.50)
CIE-LCHlch(21.36, 72.92, 305.32°)
OKLaboklab(34.08% 0.026 -0.1718)
OKLCHoklch(34.08% 0.174 278.6)
XYZxyz(6.3784, 3.3408, 25.8947)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1C8E #7D8E1C
analogous
#1C448E #2D1C8E #661C8E
triadic
#2D1C8E #8E2D1C #1C8E2D
tetradic
#2D1C8E #8E1C44 #7D8E1C #1C8E66
square
#2D1C8E #8E1C44 #7D8E1C #1C8E66
split-complementary
#2D1C8E #8E661C #448E1C
monochromatic
#0D0828 #1D125B #2D1C8E #3D26C1 #5F49DB

Accessibility & contrast

On white

12.59
#2D1C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2D1C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1C8E
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1C8E#FFFFFF#000000##FFFFFF
##2D1C8E1.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#002F8C
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2d1c8e;
/* rgb */ color: rgb(45, 28, 142);
/* oklch */ color: oklch(34.1% 0.174 278.6);
Tailwind
colors: {
  custom: {
    50: '#755cb0',
    500: '#2d1c8e',
    950: '#000000',
  },
}
SCSS
$custom: #2d1c8e;
$custom-light: #755cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1c8e",
  "rgb": {
    "r": 45,
    "g": 28,
    "b": 142
  },
  "hsl": {
    "h": 248.947,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34079,
    "c": 0.1738,
    "h": 278.6
  },
  "luminance": 0.03341
}

Semantic roles & 50–950 ramp

primary
#2D1C8E
secondary
#ACBD49
accent
#EA3ED0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2D1C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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