#2D218A#2D218A

#2D218A is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.3% C 0.164 H 278.4°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#2D218A
RGBrgb(45, 33, 138)
HSLhsl(247, 61%, 34%)
HSVhsv(247, 76%, 54%)
CMYKcmyk(67.4%, 76.1%, 0%, 45.9%)
CIE-LABlab(21.87, 38.16, -56.16)
CIE-LCHlch(21.87, 67.90, 304.20°)
OKLaboklab(34.31% 0.0241 -0.1622)
OKLCHoklch(34.31% 0.164 278.4)
XYZxyz(6.2120, 3.4801, 24.3842)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D218A #7E8A21
analogous
#21498A #2D218A #61218A
triadic
#2D218A #8A2D21 #218A2D
tetradic
#2D218A #8A2149 #7E8A21 #218A61
square
#2D218A #8A2149 #7E8A21 #218A61
split-complementary
#2D218A #8A6121 #498A21
monochromatic
#0D0927 #1D1559 #2D218A #3D2DBB #5F50D5

Accessibility & contrast

On white

12.38
#2D218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D218A
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D218A#FFFFFF#000000##FFFFFF
##2D218A1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#003088
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2d218a;
/* rgb */ color: rgb(45, 33, 138);
/* oklch */ color: oklch(34.3% 0.164 278.4);
Tailwind
colors: {
  custom: {
    50: '#745ead',
    500: '#2d218a',
    950: '#000000',
  },
}
SCSS
$custom: #2d218a;
$custom-light: #745ead;
$custom-dark: #000000;
JSON
{
  "hex": "#2d218a",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 246.857,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34309,
    "c": 0.16395,
    "h": 278.4
  },
  "luminance": 0.03481
}

Semantic roles & 50–950 ramp

primary
#2D218A
secondary
#ACB94E
accent
#E543D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D218A

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

Preview Lab → · Contrast checker → · Palette generator →

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