#2D1C8F#2D1C8F

#2D1C8F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.2% C 0.175 H 278.4°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#2D1C8F
RGBrgb(45, 28, 143)
HSLhsl(249, 67%, 34%)
HSVhsv(249, 80%, 56%)
CMYKcmyk(68.5%, 80.4%, 0%, 43.9%)
CIE-LABlab(21.47, 42.47, -59.93)
CIE-LCHlch(21.47, 73.45, 305.32°)
OKLaboklab(34.19% 0.0257 -0.1731)
OKLCHoklch(34.19% 0.175 278.4)
XYZxyz(6.4538, 3.3710, 26.2918)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1C8F #7E8F1C
analogous
#1C448F #2D1C8F #661C8F
triadic
#2D1C8F #8F2D1C #1C8F2D
tetradic
#2D1C8F #8F1C44 #7E8F1C #1C8F66
square
#2D1C8F #8F1C44 #7E8F1C #1C8F66
split-complementary
#2D1C8F #8F661C #448F1C
monochromatic
#0D0829 #1D125C #2D1C8F #3D26C2 #5F4ADC

Accessibility & contrast

On white

12.54
#2D1C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1C8F
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1C8F#FFFFFF#000000##FFFFFF
##2D1C8F1.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2d1c8f;
/* rgb */ color: rgb(45, 28, 143);
/* oklch */ color: oklch(34.2% 0.175 278.4);
Tailwind
colors: {
  custom: {
    50: '#755cb1',
    500: '#2d1c8f',
    950: '#000000',
  },
}
SCSS
$custom: #2d1c8f;
$custom-light: #755cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1c8f",
  "rgb": {
    "r": 45,
    "g": 28,
    "b": 143
  },
  "hsl": {
    "h": 248.87,
    "s": 67.251,
    "l": 33.529
  },
  "oklch": {
    "l": 0.3419,
    "c": 0.17502,
    "h": 278.4
  },
  "luminance": 0.03372
}

Semantic roles & 50–950 ramp

primary
#2D1C8F
secondary
#ACBE49
accent
#EA3ED1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2D1C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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