#2D1E8A#2D1E8A

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

Color values

HEX#2D1E8A
RGBrgb(45, 30, 138)
HSLhsl(248, 64%, 33%)
HSVhsv(248, 78%, 54%)
CMYKcmyk(67.4%, 78.3%, 0%, 45.9%)
CIE-LABlab(21.29, 39.83, -57.12)
CIE-LCHlch(21.29, 69.64, 304.88°)
OKLaboklab(33.9% 0.026 -0.165)
OKLCHoklch(33.9% 0.167 278.9)
XYZxyz(6.1324, 3.3209, 24.3577)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1E8A #7B8A1E
analogous
#1E458A #2D1E8A #631E8A
triadic
#2D1E8A #8A2D1E #1E8A2D
tetradic
#2D1E8A #8A1E45 #7B8A1E #1E8A63
square
#2D1E8A #8A1E45 #7B8A1E #1E8A63
split-complementary
#2D1E8A #8A631E #458A1E
monochromatic
#0C0825 #1D1358 #2D1E8A #3D29BC #5E4BD8

Accessibility & contrast

On white

12.62
#2D1E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1E8A
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1E8A#FFFFFF#000000##FFFFFF
##2D1E8A1.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378D
Deuteranopia (green-blind)
#002F88
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2d1e8a;
/* rgb */ color: rgb(45, 30, 138);
/* oklch */ color: oklch(33.9% 0.167 278.9);
Tailwind
colors: {
  custom: {
    50: '#745dad',
    500: '#2d1e8a',
    950: '#000000',
  },
}
SCSS
$custom: #2d1e8a;
$custom-light: #745dad;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1e8a",
  "rgb": {
    "r": 45,
    "g": 30,
    "b": 138
  },
  "hsl": {
    "h": 248.333,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33896,
    "c": 0.16699,
    "h": 278.9
  },
  "luminance": 0.03321
}

Semantic roles & 50–950 ramp

primary
#2D1E8A
secondary
#ABBA4A
accent
#E741D0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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