#2D1A9E#2D1A9E

#2D1A9E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.7% C 0.194 H 276.5°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#2D1A9E
RGBrgb(45, 26, 158)
HSLhsl(249, 72%, 36%)
HSVhsv(249, 84%, 62%)
CMYKcmyk(71.5%, 83.5%, 0%, 38%)
CIE-LABlab(22.88, 48.03, -66.86)
CIE-LCHlch(22.88, 82.32, 305.69°)
OKLaboklab(35.67% 0.0222 -0.1932)
OKLCHoklch(35.67% 0.194 276.5)
XYZxyz(7.6211, 3.7646, 32.6661)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1A9E #8B9E1A
analogous
#1A499E #2D1A9E #6F1A9E
triadic
#2D1A9E #9E2D1A #1A9E2D
tetradic
#2D1A9E #9E1A49 #8B9E1A #1A9E6F
square
#2D1A9E #9E1A49 #8B9E1A #1A9E6F
split-complementary
#2D1A9E #9E6F1A #499E1A
monochromatic
#0F0935 #1E1169 #2D1A9E #3C23D3 #6550E2

Accessibility & contrast

On white

11.98
#2D1A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2D1A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1A9E
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1A9E#FFFFFF#000000##FFFFFF
##2D1A9E1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA2
Deuteranopia (green-blind)
#00319C
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2d1a9e;
/* rgb */ color: rgb(45, 26, 158);
/* oklch */ color: oklch(35.7% 0.194 276.5);
Tailwind
colors: {
  custom: {
    50: '#795cbc',
    500: '#2d1a9e',
    950: '#000000',
  },
}
SCSS
$custom: #2d1a9e;
$custom-light: #795cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1a9e",
  "rgb": {
    "r": 45,
    "g": 26,
    "b": 158
  },
  "hsl": {
    "h": 248.636,
    "s": 71.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35671,
    "c": 0.19448,
    "h": 276.5
  },
  "luminance": 0.03765
}

Semantic roles & 50–950 ramp

primary
#2D1A9E
secondary
#B4C54F
accent
#EE39D4
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2D1A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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