#2F208B#2F208B

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

Color values

HEX#2F208B
RGBrgb(47, 32, 139)
HSLhsl(248, 63%, 34%)
HSVhsv(248, 77%, 55%)
CMYKcmyk(66.2%, 77%, 0%, 45.5%)
CIE-LABlab(21.95, 39.29, -56.65)
CIE-LCHlch(21.95, 68.94, 304.74°)
OKLaboklab(34.44% 0.0274 -0.1635)
OKLCHoklch(34.44% 0.166 279.5)
XYZxyz(6.3475, 3.5009, 24.7623)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F208B #7C8B20
analogous
#20468B #2F208B #64208B
triadic
#2F208B #8B2F20 #208B2F
tetradic
#2F208B #8B2046 #7C8B20 #208B64
square
#2F208B #8B2046 #7C8B20 #208B64
split-complementary
#2F208B #8B6420 #468B20
monochromatic
#0D0928 #1E1559 #2F208B #402BBD #624FD6

Accessibility & contrast

On white

12.35
#2F208B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2F208B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F208B
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F208B#FFFFFF#000000##FFFFFF
##2F208B1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#003089
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f208b;
/* rgb */ color: rgb(47, 32, 139);
/* oklch */ color: oklch(34.4% 0.166 279.5);
Tailwind
colors: {
  custom: {
    50: '#755eae',
    500: '#2f208b',
    950: '#000000',
  },
}
SCSS
$custom: #2f208b;
$custom-light: #755eae;
$custom-dark: #000000;
JSON
{
  "hex": "#2f208b",
  "rgb": {
    "r": 47,
    "g": 32,
    "b": 139
  },
  "hsl": {
    "h": 248.411,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34437,
    "c": 0.16582,
    "h": 279.5
  },
  "luminance": 0.03501
}

Semantic roles & 50–950 ramp

primary
#2F208B
secondary
#AABA4D
accent
#E642CF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F208B

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

Preview Lab → · Contrast checker → · Palette generator →

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