#2D218C#2D218C

#2D218C is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.166 H 278.2°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#2D218C
RGBrgb(45, 33, 140)
HSLhsl(247, 62%, 34%)
HSVhsv(247, 76%, 55%)
CMYKcmyk(67.9%, 76.4%, 0%, 45.1%)
CIE-LABlab(22.08, 38.82, -57.06)
CIE-LCHlch(22.08, 69.01, 304.23°)
OKLaboklab(34.52% 0.0236 -0.1648)
OKLCHoklch(34.52% 0.166 278.2)
XYZxyz(6.3581, 3.5385, 25.1538)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D218C #808C21
analogous
#214B8C #2D218C #63218C
triadic
#2D218C #8C2D21 #218C2D
tetradic
#2D218C #8C214B #808C21 #218C63
square
#2D218C #8C214B #808C21 #218C63
split-complementary
#2D218C #8C6321 #4B8C21
monochromatic
#0D0A29 #1D155A #2D218C #3D2DBE #6051D6

Accessibility & contrast

On white

12.30
#2D218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D218C
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D218C#FFFFFF#000000##FFFFFF
##2D218C1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#00308A
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2d218c;
/* rgb */ color: rgb(45, 33, 140);
/* oklch */ color: oklch(34.5% 0.166 278.2);
Tailwind
colors: {
  custom: {
    50: '#745eaf',
    500: '#2d218c',
    950: '#000000',
  },
}
SCSS
$custom: #2d218c;
$custom-light: #745eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#2d218c",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 246.729,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34521,
    "c": 0.16647,
    "h": 278.2
  },
  "luminance": 0.03539
}

Semantic roles & 50–950 ramp

primary
#2D218C
secondary
#AEB94F
accent
#E543D3
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D218C

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

Preview Lab → · Contrast checker → · Palette generator →

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