#2F218D#2F218D

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

Color values

HEX#2F218D
RGBrgb(47, 33, 141)
HSLhsl(248, 62%, 34%)
HSVhsv(248, 77%, 55%)
CMYKcmyk(66.7%, 76.6%, 0%, 44.7%)
CIE-LABlab(22.35, 39.38, -57.23)
CIE-LCHlch(22.35, 69.47, 304.53°)
OKLaboklab(34.79% 0.0263 -0.1652)
OKLCHoklch(34.79% 0.167 279)
XYZxyz(6.5223, 3.6146, 25.5481)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F218D #7F8D21
analogous
#21498D #2F218D #65218D
triadic
#2F218D #8D2F21 #218D2F
tetradic
#2F218D #8D2149 #7F8D21 #218D65
square
#2F218D #8D2149 #7F8D21 #218D65
split-complementary
#2F218D #8D6521 #498D21
monochromatic
#0E0A2A #1E155B #2F218D #402DBF #6352D6

Accessibility & contrast

On white

12.19
#2F218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2F218D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F218D
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F218D#FFFFFF#000000##FFFFFF
##2F218D1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f218d;
/* rgb */ color: rgb(47, 33, 141);
/* oklch */ color: oklch(34.8% 0.167 279.0);
Tailwind
colors: {
  custom: {
    50: '#755faf',
    500: '#2f218d',
    950: '#000000',
  },
}
SCSS
$custom: #2f218d;
$custom-light: #755faf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f218d",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 247.778,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34786,
    "c": 0.1673,
    "h": 279
  },
  "luminance": 0.03615
}

Semantic roles & 50–950 ramp

primary
#2F218D
secondary
#ACBA50
accent
#E543D0
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #2F218D

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

Preview Lab → · Contrast checker → · Palette generator →

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