#2D1A9F#2D1A9F

#2D1A9F is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.8% C 0.196 H 276.4°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#2D1A9F
RGBrgb(45, 26, 159)
HSLhsl(249, 72%, 36%)
HSVhsv(249, 84%, 62%)
CMYKcmyk(71.7%, 83.6%, 0%, 37.6%)
CIE-LABlab(23.00, 48.33, -67.27)
CIE-LCHlch(23.00, 82.83, 305.70°)
OKLaboklab(35.79% 0.0219 -0.1944)
OKLCHoklch(35.79% 0.196 276.4)
XYZxyz(7.7075, 3.7992, 33.1213)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1A9F #8C9F1A
analogous
#1A4A9F #2D1A9F #701A9F
triadic
#2D1A9F #9F2D1A #1A9F2D
tetradic
#2D1A9F #9F1A4A #8C9F1A #1A9F70
square
#2D1A9F #9F1A4A #8C9F1A #1A9F70
split-complementary
#2D1A9F #9F701A #4A9F1A
monochromatic
#0F0936 #1E116A #2D1A9F #3C23D4 #6651E3

Accessibility & contrast

On white

11.93
#2D1A9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2D1A9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1A9F
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1A9F#FFFFFF#000000##FFFFFF
##2D1A9F1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA3
Deuteranopia (green-blind)
#00319D
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2d1a9f;
/* rgb */ color: rgb(45, 26, 159);
/* oklch */ color: oklch(35.8% 0.196 276.4);
Tailwind
colors: {
  custom: {
    50: '#795cbd',
    500: '#2d1a9f',
    950: '#000000',
  },
}
SCSS
$custom: #2d1a9f;
$custom-light: #795cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1a9f",
  "rgb": {
    "r": 45,
    "g": 26,
    "b": 159
  },
  "hsl": {
    "h": 248.571,
    "s": 71.892,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35787,
    "c": 0.19563,
    "h": 276.4
  },
  "luminance": 0.038
}

Semantic roles & 50–950 ramp

primary
#2D1A9F
secondary
#B4C550
accent
#EF39D5
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2D1A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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