#2D218F#2D218F

#2D218F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.170 H 277.7°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#2D218F
RGBrgb(45, 33, 143)
HSLhsl(247, 63%, 35%)
HSVhsv(247, 77%, 56%)
CMYKcmyk(68.5%, 76.9%, 0%, 43.9%)
CIE-LABlab(22.40, 39.80, -58.40)
CIE-LCHlch(22.40, 70.67, 304.28°)
OKLaboklab(34.84% 0.0229 -0.1687)
OKLCHoklch(34.84% 0.17 277.7)
XYZxyz(6.5824, 3.6282, 26.3347)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D218F #838F21
analogous
#214C8F #2D218F #64218F
triadic
#2D218F #8F2D21 #218F2D
tetradic
#2D218F #8F214C #838F21 #218F64
square
#2D218F #8F214C #838F21 #218F64
split-complementary
#2D218F #8F6421 #4C8F21
monochromatic
#0E0A2C #1D165D #2D218F #3D2CC1 #6253D7

Accessibility & contrast

On white

12.17
#2D218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2D218F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D218F
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D218F#FFFFFF#000000##FFFFFF
##2D218F1.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d218f;
/* rgb */ color: rgb(45, 33, 143);
/* oklch */ color: oklch(34.8% 0.170 277.7);
Tailwind
colors: {
  custom: {
    50: '#755fb1',
    500: '#2d218f',
    950: '#000000',
  },
}
SCSS
$custom: #2d218f;
$custom-light: #755fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d218f",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 246.545,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34842,
    "c": 0.17025,
    "h": 277.7
  },
  "luminance": 0.03629
}

Semantic roles & 50–950 ramp

primary
#2D218F
secondary
#AFBB51
accent
#E642D4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2D218F

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

Preview Lab → · Contrast checker → · Palette generator →

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