#2D18A1#2D18A1

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

Color values

HEX#2D18A1
RGBrgb(45, 24, 161)
HSLhsl(249, 74%, 36%)
HSVhsv(249, 85%, 63%)
CMYKcmyk(72%, 85.1%, 0%, 36.9%)
CIE-LABlab(22.94, 49.79, -68.58)
CIE-LCHlch(22.94, 84.75, 305.98°)
OKLaboklab(35.82% 0.0219 -0.1982)
OKLCHoklch(35.82% 0.199 276.3)
XYZxyz(7.8397, 3.7836, 34.0285)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D18A1 #8CA118
analogous
#1848A1 #2D18A1 #7218A1
triadic
#2D18A1 #A12D18 #18A12D
tetradic
#2D18A1 #A11848 #8CA118 #18A172
square
#2D18A1 #A11848 #8CA118 #18A172
split-complementary
#2D18A1 #A17218 #48A118
monochromatic
#0F0836 #1E106C #2D18A1 #3C20D6 #664FE5

Accessibility & contrast

On white

11.95
#2D18A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D18A1
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D18A1#FFFFFF#000000##FFFFFF
##2D18A11.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA5
Deuteranopia (green-blind)
#00319F
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2d18a1;
/* rgb */ color: rgb(45, 24, 161);
/* oklch */ color: oklch(35.8% 0.199 276.3);
Tailwind
colors: {
  custom: {
    50: '#7a5bbe',
    500: '#2d18a1',
    950: '#000000',
  },
}
SCSS
$custom: #2d18a1;
$custom-light: #7a5bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2d18a1",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 161
  },
  "hsl": {
    "h": 249.197,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.3582,
    "c": 0.19938,
    "h": 276.3
  },
  "luminance": 0.03784
}

Semantic roles & 50–950 ramp

primary
#2D18A1
secondary
#B4C74E
accent
#F137D4
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2D18A1

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

Preview Lab → · Contrast checker → · Palette generator →

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