#2D218D#2D218D

#2D218D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.6% C 0.168 H 278.0°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#2D218D
RGBrgb(45, 33, 141)
HSLhsl(247, 62%, 34%)
HSVhsv(247, 77%, 55%)
CMYKcmyk(68.1%, 76.6%, 0%, 44.7%)
CIE-LABlab(22.19, 39.15, -57.51)
CIE-LCHlch(22.19, 69.57, 304.25°)
OKLaboklab(34.63% 0.0234 -0.1661)
OKLCHoklch(34.63% 0.168 278)
XYZxyz(6.4322, 3.5681, 25.5439)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D218D #818D21
analogous
#214B8D #2D218D #63218D
triadic
#2D218D #8D2D21 #218D2D
tetradic
#2D218D #8D214B #818D21 #218D63
square
#2D218D #8D214B #818D21 #218D63
split-complementary
#2D218D #8D6321 #4B8D21
monochromatic
#0D0A2A #1D155B #2D218D #3D2DBF #6152D6

Accessibility & contrast

On white

12.25
#2D218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2D218D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D218D
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D218D#FFFFFF#000000##FFFFFF
##2D218D1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00318B
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2d218d;
/* rgb */ color: rgb(45, 33, 141);
/* oklch */ color: oklch(34.6% 0.168 278.0);
Tailwind
colors: {
  custom: {
    50: '#745eaf',
    500: '#2d218d',
    950: '#000000',
  },
}
SCSS
$custom: #2d218d;
$custom-light: #745eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#2d218d",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 246.667,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34628,
    "c": 0.16774,
    "h": 278
  },
  "luminance": 0.03569
}

Semantic roles & 50–950 ramp

primary
#2D218D
secondary
#AEBA50
accent
#E543D3
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #2D218D

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

Preview Lab → · Contrast checker → · Palette generator →

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