#2D1A8E#2D1A8E

#2D1A8E is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.8% C 0.176 H 278.9°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#2D1A8E
RGBrgb(45, 26, 142)
HSLhsl(250, 69%, 33%)
HSVhsv(250, 82%, 56%)
CMYKcmyk(68.3%, 81.7%, 0%, 44.3%)
CIE-LABlab(21.02, 43.15, -60.07)
CIE-LCHlch(21.02, 73.96, 305.69°)
OKLaboklab(33.84% 0.027 -0.1735)
OKLCHoklch(33.84% 0.176 278.9)
XYZxyz(6.3325, 3.2491, 25.8794)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1A8E #7B8E1A
analogous
#1A418E #2D1A8E #671A8E
triadic
#2D1A8E #8E2D1A #1A8E2D
tetradic
#2D1A8E #8E1A41 #7B8E1A #1A8E67
square
#2D1A8E #8E1A41 #7B8E1A #1A8E67
split-complementary
#2D1A8E #8E671A #418E1A
monochromatic
#0C0727 #1D115A #2D1A8E #3D23C2 #5E45DD

Accessibility & contrast

On white

12.73
#2D1A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2D1A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1A8E
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1A8E#FFFFFF#000000##FFFFFF
##2D1A8E1.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003791
Deuteranopia (green-blind)
#002E8C
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2d1a8e;
/* rgb */ color: rgb(45, 26, 142);
/* oklch */ color: oklch(33.8% 0.176 278.9);
Tailwind
colors: {
  custom: {
    50: '#755bb0',
    500: '#2d1a8e',
    950: '#000000',
  },
}
SCSS
$custom: #2d1a8e;
$custom-light: #755bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1a8e",
  "rgb": {
    "r": 45,
    "g": 26,
    "b": 142
  },
  "hsl": {
    "h": 249.828,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33839,
    "c": 0.17557,
    "h": 278.9
  },
  "luminance": 0.0325
}

Semantic roles & 50–950 ramp

primary
#2D1A8E
secondary
#ABBE45
accent
#EC3CCF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2D1A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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