#2F208E#2F208E

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

Color values

HEX#2F208E
RGBrgb(47, 32, 142)
HSLhsl(248, 63%, 34%)
HSVhsv(248, 77%, 56%)
CMYKcmyk(66.9%, 77.5%, 0%, 44.3%)
CIE-LABlab(22.27, 40.26, -58.00)
CIE-LCHlch(22.27, 70.60, 304.77°)
OKLaboklab(34.76% 0.0266 -0.1675)
OKLCHoklch(34.76% 0.17 279)
XYZxyz(6.5697, 3.5898, 25.9326)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F208E #7F8E20
analogous
#20488E #2F208E #66208E
triadic
#2F208E #8E2F20 #208E2F
tetradic
#2F208E #8E2048 #7F8E20 #208E66
square
#2F208E #8E2048 #7F8E20 #208E66
split-complementary
#2F208E #8E6620 #488E20
monochromatic
#0E092A #1E155C #2F208E #402BC0 #6351D8

Accessibility & contrast

On white

12.22
#2F208E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F208E
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F208E#FFFFFF#000000##FFFFFF
##2F208E1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#00318C
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f208e;
/* rgb */ color: rgb(47, 32, 142);
/* oklch */ color: oklch(34.8% 0.170 279.0);
Tailwind
colors: {
  custom: {
    50: '#755eb0',
    500: '#2f208e',
    950: '#000000',
  },
}
SCSS
$custom: #2f208e;
$custom-light: #755eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f208e",
  "rgb": {
    "r": 47,
    "g": 32,
    "b": 142
  },
  "hsl": {
    "h": 248.182,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34756,
    "c": 0.16957,
    "h": 279
  },
  "luminance": 0.0359
}

Semantic roles & 50–950 ramp

primary
#2F208E
secondary
#ACBB4F
accent
#E642D0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F208E

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

Preview Lab → · Contrast checker → · Palette generator →

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