#2D218B#2D218B

#2D218B is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.165 H 278.3°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#2D218B
RGBrgb(45, 33, 139)
HSLhsl(247, 62%, 34%)
HSVhsv(247, 76%, 55%)
CMYKcmyk(67.6%, 76.3%, 0%, 45.5%)
CIE-LABlab(21.98, 38.49, -56.61)
CIE-LCHlch(21.98, 68.45, 304.21°)
OKLaboklab(34.42% 0.0239 -0.1635)
OKLCHoklch(34.42% 0.165 278.3)
XYZxyz(6.2847, 3.5092, 24.7672)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D218B #7F8B21
analogous
#214A8B #2D218B #62218B
triadic
#2D218B #8B2D21 #218B2D
tetradic
#2D218B #8B214A #7F8B21 #218B62
square
#2D218B #8B214A #7F8B21 #218B62
split-complementary
#2D218B #8B6221 #4A8B21
monochromatic
#0D0A28 #1D155A #2D218B #3D2DBC #6051D6

Accessibility & contrast

On white

12.34
#2D218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2D218B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D218B
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D218B#FFFFFF#000000##FFFFFF
##2D218B1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#003089
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2d218b;
/* rgb */ color: rgb(45, 33, 139);
/* oklch */ color: oklch(34.4% 0.165 278.3);
Tailwind
colors: {
  custom: {
    50: '#745eae',
    500: '#2d218b',
    950: '#000000',
  },
}
SCSS
$custom: #2d218b;
$custom-light: #745eae;
$custom-dark: #000000;
JSON
{
  "hex": "#2d218b",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 246.792,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34415,
    "c": 0.16521,
    "h": 278.3
  },
  "luminance": 0.0351
}

Semantic roles & 50–950 ramp

primary
#2D218B
secondary
#ADB94F
accent
#E543D2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D218B

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

Preview Lab → · Contrast checker → · Palette generator →

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