#2D219F#2D219F

#2D219F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.6% C 0.190 H 275.7°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#2D219F
RGBrgb(45, 33, 159)
HSLhsl(246, 66%, 38%)
HSVhsv(246, 79%, 62%)
CMYKcmyk(71.7%, 79.2%, 0%, 37.6%)
CIE-LABlab(24.16, 44.96, -65.35)
CIE-LCHlch(24.16, 79.32, 304.52°)
OKLaboklab(36.59% 0.019 -0.1889)
OKLCHoklch(36.59% 0.19 275.7)
XYZxyz(7.8820, 4.1481, 33.1794)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D219F #939F21
analogous
#21549F #2D219F #6C219F
triadic
#2D219F #9F2D21 #219F2D
tetradic
#2D219F #9F2154 #939F21 #219F6C
square
#2D219F #9F2154 #939F21 #219F6C
split-complementary
#2D219F #9F6C21 #549F21
monochromatic
#100C3A #1F166C #2D219F #3B2CD2 #695DDD

Accessibility & contrast

On white

11.48
#2D219F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2D219F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D219F
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D219F#FFFFFF#000000##FFFFFF
##2D219F1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA3
Deuteranopia (green-blind)
#00349D
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2d219f;
/* rgb */ color: rgb(45, 33, 159);
/* oklch */ color: oklch(36.6% 0.190 275.7);
Tailwind
colors: {
  custom: {
    50: '#785fbd',
    500: '#2d219f',
    950: '#000000',
  },
}
SCSS
$custom: #2d219f;
$custom-light: #785fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d219f",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 159
  },
  "hsl": {
    "h": 245.714,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36591,
    "c": 0.18989,
    "h": 275.7
  },
  "luminance": 0.04149
}

Semantic roles & 50–950 ramp

primary
#2D219F
secondary
#B8C25A
accent
#E93FD8
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2D219F

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

Preview Lab → · Contrast checker → · Palette generator →

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