#2D1B90#2D1B90

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

Color values

HEX#2D1B90
RGBrgb(45, 27, 144)
HSLhsl(249, 68%, 34%)
HSVhsv(249, 81%, 56%)
CMYKcmyk(68.7%, 81.3%, 0%, 43.5%)
CIE-LABlab(21.41, 43.28, -60.66)
CIE-LCHlch(21.41, 74.51, 305.51°)
OKLaboklab(34.18% 0.0259 -0.1752)
OKLCHoklch(34.18% 0.177 278.4)
XYZxyz(6.5065, 3.3548, 26.6848)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1B90 #7E901B
analogous
#1B4390 #2D1B90 #671B90
triadic
#2D1B90 #902D1B #1B902D
tetradic
#2D1B90 #901B43 #7E901B #1B9067
square
#2D1B90 #901B43 #7E901B #1B9067
split-complementary
#2D1B90 #90671B #43901B
monochromatic
#0D0829 #1D115C #2D1B90 #3D25C4 #5F49DD

Accessibility & contrast

On white

12.57
#2D1B90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1B90
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1B90#FFFFFF#000000##FFFFFF
##2D1B901.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003893
Deuteranopia (green-blind)
#002F8E
Tritanopia (blue-blind)
#003F56
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2d1b90;
/* rgb */ color: rgb(45, 27, 144);
/* oklch */ color: oklch(34.2% 0.177 278.4);
Tailwind
colors: {
  custom: {
    50: '#755bb2',
    500: '#2d1b90',
    950: '#000000',
  },
}
SCSS
$custom: #2d1b90;
$custom-light: #755bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1b90",
  "rgb": {
    "r": 45,
    "g": 27,
    "b": 144
  },
  "hsl": {
    "h": 249.231,
    "s": 68.421,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34182,
    "c": 0.17711,
    "h": 278.4
  },
  "luminance": 0.03355
}

Semantic roles & 50–950 ramp

primary
#2D1B90
secondary
#ACBF48
accent
#EB3DD0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2D1B90

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

Preview Lab → · Contrast checker → · Palette generator →

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