#2D1E9B#2D1E9B

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

Color values

HEX#2D1E9B
RGBrgb(45, 30, 155)
HSLhsl(247, 68%, 36%)
HSVhsv(247, 81%, 61%)
CMYKcmyk(71%, 80.6%, 0%, 39.2%)
CIE-LABlab(23.18, 45.22, -64.53)
CIE-LCHlch(23.18, 78.79, 305.02°)
OKLaboklab(35.78% 0.0214 -0.1865)
OKLCHoklch(35.78% 0.188 276.5)
XYZxyz(7.4609, 3.8523, 31.3544)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1E9B #8C9B1E
analogous
#1E4E9B #2D1E9B #6C1E9B
triadic
#2D1E9B #9B2D1E #1E9B2D
tetradic
#2D1E9B #9B1E4E #8C9B1E #1E9B6C
square
#2D1E9B #9B1E4E #8C9B1E #1E9B6C
split-complementary
#2D1E9B #9B6C1E #4E9B1E
monochromatic
#0F0A34 #1E1468 #2D1E9B #3C28CE #6655DE

Accessibility & contrast

On white

11.86
#2D1E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2D1E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1E9B
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1E9B#FFFFFF#000000##FFFFFF
##2D1E9B1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9E
Deuteranopia (green-blind)
#003299
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2d1e9b;
/* rgb */ color: rgb(45, 30, 155);
/* oklch */ color: oklch(35.8% 0.188 276.5);
Tailwind
colors: {
  custom: {
    50: '#785eba',
    500: '#2d1e9b',
    950: '#000000',
  },
}
SCSS
$custom: #2d1e9b;
$custom-light: #785eba;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1e9b",
  "rgb": {
    "r": 45,
    "g": 30,
    "b": 155
  },
  "hsl": {
    "h": 247.2,
    "s": 67.568,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35777,
    "c": 0.18772,
    "h": 276.5
  },
  "luminance": 0.03853
}

Semantic roles & 50–950 ramp

primary
#2D1E9B
secondary
#B4C253
accent
#EA3DD6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2D1E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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