#2F208F#2F208F

#2F208F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.9% C 0.171 H 278.9°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#2F208F
RGBrgb(47, 32, 143)
HSLhsl(248, 63%, 34%)
HSVhsv(248, 78%, 56%)
CMYKcmyk(67.1%, 77.6%, 0%, 43.9%)
CIE-LABlab(22.37, 40.58, -58.44)
CIE-LCHlch(22.37, 71.15, 304.77°)
OKLaboklab(34.86% 0.0264 -0.1688)
OKLCHoklch(34.86% 0.171 278.9)
XYZxyz(6.6451, 3.6200, 26.3298)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F208F #808F20
analogous
#20498F #2F208F #67208F
triadic
#2F208F #8F2F20 #208F2F
tetradic
#2F208F #8F2049 #808F20 #208F67
square
#2F208F #8F2049 #808F20 #208F67
split-complementary
#2F208F #8F6720 #498F20
monochromatic
#0E0A2B #1F155D #2F208F #3F2BC1 #6351D8

Accessibility & contrast

On white

12.18
#2F208F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F208F
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F208F#FFFFFF#000000##FFFFFF
##2F208F1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f208f;
/* rgb */ color: rgb(47, 32, 143);
/* oklch */ color: oklch(34.9% 0.171 278.9);
Tailwind
colors: {
  custom: {
    50: '#765eb1',
    500: '#2f208f',
    950: '#000000',
  },
}
SCSS
$custom: #2f208f;
$custom-light: #765eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f208f",
  "rgb": {
    "r": 47,
    "g": 32,
    "b": 143
  },
  "hsl": {
    "h": 248.108,
    "s": 63.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34863,
    "c": 0.17081,
    "h": 278.9
  },
  "luminance": 0.03621
}

Semantic roles & 50–950 ramp

primary
#2F208F
secondary
#ADBB4F
accent
#E641D0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F208F

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

Preview Lab → · Contrast checker → · Palette generator →

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