#2D1D88#2D1D88

#2D1D88 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.5% C 0.165 H 279.4°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#2D1D88
RGBrgb(45, 29, 136)
HSLhsl(249, 65%, 32%)
HSVhsv(249, 79%, 53%)
CMYKcmyk(66.9%, 78.7%, 0%, 46.7%)
CIE-LABlab(20.88, 39.72, -56.54)
CIE-LCHlch(20.88, 69.10, 305.09°)
OKLaboklab(33.55% 0.0271 -0.1632)
OKLCHoklch(33.55% 0.165 279.4)
XYZxyz(5.9641, 3.2137, 23.5938)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1D88 #78881D
analogous
#1D4388 #2D1D88 #631D88
triadic
#2D1D88 #882D1D #1D882D
tetradic
#2D1D88 #881D43 #78881D #1D8863
square
#2D1D88 #881D43 #78881D #1D8863
split-complementary
#2D1D88 #88631D #43881D
monochromatic
#0C0723 #1C1256 #2D1D88 #3E28BA #5D48D8

Accessibility & contrast

On white

12.78
#2D1D88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2D1D88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1D88
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1D88#FFFFFF#000000##FFFFFF
##2D1D881.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368B
Deuteranopia (green-blind)
#002E86
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2d1d88;
/* rgb */ color: rgb(45, 29, 136);
/* oklch */ color: oklch(33.5% 0.165 279.4);
Tailwind
colors: {
  custom: {
    50: '#735cac',
    500: '#2d1d88',
    950: '#000000',
  },
}
SCSS
$custom: #2d1d88;
$custom-light: #735cac;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1d88",
  "rgb": {
    "r": 45,
    "g": 29,
    "b": 136
  },
  "hsl": {
    "h": 248.972,
    "s": 64.848,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33547,
    "c": 0.16548,
    "h": 279.4
  },
  "luminance": 0.03214
}

Semantic roles & 50–950 ramp

primary
#2D1D88
secondary
#A9BA47
accent
#E840CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1D88

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

Preview Lab → · Contrast checker → · Palette generator →

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