#2D1A8F#2D1A8F

#2D1A8F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.0% C 0.177 H 278.7°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#2D1A8F
RGBrgb(45, 26, 143)
HSLhsl(250, 69%, 33%)
HSVhsv(250, 82%, 56%)
CMYKcmyk(68.5%, 81.8%, 0%, 43.9%)
CIE-LABlab(21.13, 43.46, -60.50)
CIE-LCHlch(21.13, 74.49, 305.69°)
OKLaboklab(33.95% 0.0267 -0.1747)
OKLCHoklch(33.95% 0.177 278.7)
XYZxyz(6.4079, 3.2793, 26.2766)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1A8F #7C8F1A
analogous
#1A418F #2D1A8F #681A8F
triadic
#2D1A8F #8F2D1A #1A8F2D
tetradic
#2D1A8F #8F1A41 #7C8F1A #1A8F68
square
#2D1A8F #8F1A41 #7C8F1A #1A8F68
split-complementary
#2D1A8F #8F681A #418F1A
monochromatic
#0C0727 #1D115B #2D1A8F #3D23C3 #5F46DD

Accessibility & contrast

On white

12.68
#2D1A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2D1A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1A8F
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1A8F#FFFFFF#000000##FFFFFF
##2D1A8F1.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#002E8D
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2d1a8f;
/* rgb */ color: rgb(45, 26, 143);
/* oklch */ color: oklch(34.0% 0.177 278.7);
Tailwind
colors: {
  custom: {
    50: '#755bb1',
    500: '#2d1a8f',
    950: '#000000',
  },
}
SCSS
$custom: #2d1a8f;
$custom-light: #755bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1a8f",
  "rgb": {
    "r": 45,
    "g": 26,
    "b": 143
  },
  "hsl": {
    "h": 249.744,
    "s": 69.231,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33952,
    "c": 0.17677,
    "h": 278.7
  },
  "luminance": 0.0328
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D1A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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