#2D1B9E#2D1B9E

#2D1B9E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.8% C 0.194 H 276.5°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#2D1B9E
RGBrgb(45, 27, 158)
HSLhsl(248, 71%, 36%)
HSVhsv(248, 83%, 62%)
CMYKcmyk(71.5%, 82.9%, 0%, 38%)
CIE-LABlab(23.03, 47.58, -66.60)
CIE-LCHlch(23.03, 81.85, 305.54°)
OKLaboklab(35.78% 0.0218 -0.1925)
OKLCHoklch(35.78% 0.194 276.5)
XYZxyz(7.6437, 3.8097, 32.6736)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1B9E #8C9E1B
analogous
#1B4B9E #2D1B9E #6F1B9E
triadic
#2D1B9E #9E2D1B #1B9E2D
tetradic
#2D1B9E #9E1B4B #8C9E1B #1B9E6F
square
#2D1B9E #9E1B4B #8C9E1B #1B9E6F
split-complementary
#2D1B9E #9E6F1B #4B9E1B
monochromatic
#0F0935 #1E126A #2D1B9E #3C24D2 #6652E1

Accessibility & contrast

On white

11.92
#2D1B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2D1B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1B9E
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1B9E#FFFFFF#000000##FFFFFF
##2D1B9E1.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA2
Deuteranopia (green-blind)
#00319C
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2d1b9e;
/* rgb */ color: rgb(45, 27, 158);
/* oklch */ color: oklch(35.8% 0.194 276.5);
Tailwind
colors: {
  custom: {
    50: '#795cbc',
    500: '#2d1b9e',
    950: '#000000',
  },
}
SCSS
$custom: #2d1b9e;
$custom-light: #795cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1b9e",
  "rgb": {
    "r": 45,
    "g": 27,
    "b": 158
  },
  "hsl": {
    "h": 248.244,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35778,
    "c": 0.19371,
    "h": 276.5
  },
  "luminance": 0.0381
}

Semantic roles & 50–950 ramp

primary
#2D1B9E
secondary
#B4C451
accent
#EE3AD5
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2D1B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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