#2D219D#2D219D

#2D219D is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.4% C 0.187 H 276.0°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#2D219D
RGBrgb(45, 33, 157)
HSLhsl(246, 65%, 37%)
HSVhsv(246, 79%, 62%)
CMYKcmyk(71.3%, 79%, 0%, 38.4%)
CIE-LABlab(23.93, 44.32, -64.50)
CIE-LCHlch(23.93, 78.26, 304.50°)
OKLaboklab(36.37% 0.0195 -0.1865)
OKLCHoklch(36.37% 0.187 276)
XYZxyz(7.7099, 4.0792, 32.2728)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D219D #919D21
analogous
#21539D #2D219D #6B219D
triadic
#2D219D #9D2D21 #219D2D
tetradic
#2D219D #9D2153 #919D21 #219D6B
square
#2D219D #9D2153 #919D21 #219D6B
split-complementary
#2D219D #9D6B21 #539D21
monochromatic
#100C38 #1F166A #2D219D #3B2CD0 #685CDD

Accessibility & contrast

On white

11.56
#2D219D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2D219D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D219D
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D219D#FFFFFF#000000##FFFFFF
##2D219D1.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA0
Deuteranopia (green-blind)
#00339B
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2d219d;
/* rgb */ color: rgb(45, 33, 157);
/* oklch */ color: oklch(36.4% 0.187 276.0);
Tailwind
colors: {
  custom: {
    50: '#785fbb',
    500: '#2d219d',
    950: '#000000',
  },
}
SCSS
$custom: #2d219d;
$custom-light: #785fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#2d219d",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 157
  },
  "hsl": {
    "h": 245.806,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36369,
    "c": 0.18748,
    "h": 276
  },
  "luminance": 0.0408
}

Semantic roles & 50–950 ramp

primary
#2D219D
secondary
#B7C159
accent
#E840D8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2D219D

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

Preview Lab → · Contrast checker → · Palette generator →

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