#2F208D#2F208D

#2F208D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.6% C 0.168 H 279.2°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#2F208D
RGBrgb(47, 32, 141)
HSLhsl(248, 63%, 34%)
HSVhsv(248, 77%, 55%)
CMYKcmyk(66.7%, 77.3%, 0%, 44.7%)
CIE-LABlab(22.16, 39.94, -57.55)
CIE-LCHlch(22.16, 70.05, 304.76°)
OKLaboklab(34.65% 0.0269 -0.1662)
OKLCHoklch(34.65% 0.168 279.2)
XYZxyz(6.4950, 3.5599, 25.5390)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F208D #7E8D20
analogous
#20488D #2F208D #66208D
triadic
#2F208D #8D2F20 #208D2F
tetradic
#2F208D #8D2048 #7E8D20 #208D66
square
#2F208D #8D2048 #7E8D20 #208D66
split-complementary
#2F208D #8D6620 #488D20
monochromatic
#0E0929 #1E155B #2F208D #402BBF #6350D7

Accessibility & contrast

On white

12.27
#2F208D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F208D
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F208D#FFFFFF#000000##FFFFFF
##2F208D1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f208d;
/* rgb */ color: rgb(47, 32, 141);
/* oklch */ color: oklch(34.6% 0.168 279.2);
Tailwind
colors: {
  custom: {
    50: '#755eaf',
    500: '#2f208d',
    950: '#000000',
  },
}
SCSS
$custom: #2f208d;
$custom-light: #755eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f208d",
  "rgb": {
    "r": 47,
    "g": 32,
    "b": 141
  },
  "hsl": {
    "h": 248.257,
    "s": 63.006,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34649,
    "c": 0.16832,
    "h": 279.2
  },
  "luminance": 0.0356
}

Semantic roles & 50–950 ramp

primary
#2F208D
secondary
#ACBA4E
accent
#E642CF
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #2F208D

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

Preview Lab → · Contrast checker → · Palette generator →

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