#2D1B88#2D1B88

#2D1B88 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.3% C 0.167 H 279.7°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#2D1B88
RGBrgb(45, 27, 136)
HSLhsl(250, 67%, 32%)
HSVhsv(250, 80%, 53%)
CMYKcmyk(66.9%, 80.1%, 0%, 46.7%)
CIE-LABlab(20.51, 40.77, -57.15)
CIE-LCHlch(20.51, 70.20, 305.51°)
OKLaboklab(33.29% 0.0283 -0.165)
OKLCHoklch(33.29% 0.167 279.7)
XYZxyz(5.9166, 3.1189, 23.5780)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1B88 #76881B
analogous
#1B4088 #2D1B88 #641B88
triadic
#2D1B88 #882D1B #1B882D
tetradic
#2D1B88 #881B40 #76881B #1B8864
square
#2D1B88 #881B40 #76881B #1B8864
split-complementary
#2D1B88 #88641B #40881B
monochromatic
#0B0722 #1C1155 #2D1B88 #3E25BB #5C44DA

Accessibility & contrast

On white

12.93
#2D1B88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2D1B88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1B88
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1B88#FFFFFF#000000##FFFFFF
##2D1B881.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358B
Deuteranopia (green-blind)
#002D86
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2d1b88;
/* rgb */ color: rgb(45, 27, 136);
/* oklch */ color: oklch(33.3% 0.167 279.7);
Tailwind
colors: {
  custom: {
    50: '#745bac',
    500: '#2d1b88',
    950: '#000000',
  },
}
SCSS
$custom: #2d1b88;
$custom-light: #745bac;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1b88",
  "rgb": {
    "r": 45,
    "g": 27,
    "b": 136
  },
  "hsl": {
    "h": 249.908,
    "s": 66.871,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3329,
    "c": 0.16739,
    "h": 279.7
  },
  "luminance": 0.03119
}

Semantic roles & 50–950 ramp

primary
#2D1B88
secondary
#A7BB44
accent
#EA3ECD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1B88

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

Preview Lab → · Contrast checker → · Palette generator →

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