#2D1E96#2D1E96

#2D1E96 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.2% C 0.182 H 277.2°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#2D1E96
RGBrgb(45, 30, 150)
HSLhsl(248, 67%, 35%)
HSVhsv(248, 80%, 59%)
CMYKcmyk(70%, 80%, 0%, 41.2%)
CIE-LABlab(22.61, 43.65, -62.39)
CIE-LCHlch(22.61, 76.14, 304.98°)
OKLaboklab(35.22% 0.0227 -0.1803)
OKLCHoklch(35.22% 0.182 277.2)
XYZxyz(7.0497, 3.6878, 29.1886)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1E96 #87961E
analogous
#1E4B96 #2D1E96 #691E96
triadic
#2D1E96 #962D1E #1E962D
tetradic
#2D1E96 #961E4B #87961E #1E9669
square
#2D1E96 #961E4B #87961E #1E9669
split-complementary
#2D1E96 #96691E #4B961E
monochromatic
#0E0A30 #1E1463 #2D1E96 #3C28C9 #6352DC

Accessibility & contrast

On white

12.09
#2D1E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2D1E96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1E96
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1E96#FFFFFF#000000##FFFFFF
##2D1E961.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B99
Deuteranopia (green-blind)
#003194
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d1e96;
/* rgb */ color: rgb(45, 30, 150);
/* oklch */ color: oklch(35.2% 0.182 277.2);
Tailwind
colors: {
  custom: {
    50: '#775db6',
    500: '#2d1e96',
    950: '#000000',
  },
}
SCSS
$custom: #2d1e96;
$custom-light: #775db6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1e96",
  "rgb": {
    "r": 45,
    "g": 30,
    "b": 150
  },
  "hsl": {
    "h": 247.5,
    "s": 66.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35216,
    "c": 0.18171,
    "h": 277.2
  },
  "luminance": 0.03688
}

Semantic roles & 50–950 ramp

primary
#2D1E96
secondary
#B2BF50
accent
#EA3ED4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2D1E96

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

Preview Lab → · Contrast checker → · Palette generator →

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