#2F208A#2F208A

#2F208A is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.3% C 0.165 H 279.7°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#2F208A
RGBrgb(47, 32, 138)
HSLhsl(248, 62%, 33%)
HSVhsv(248, 77%, 54%)
CMYKcmyk(65.9%, 76.8%, 0%, 45.9%)
CIE-LABlab(21.84, 38.97, -56.20)
CIE-LCHlch(21.84, 68.39, 304.74°)
OKLaboklab(34.33% 0.0276 -0.1622)
OKLCHoklch(34.33% 0.165 279.7)
XYZxyz(6.2748, 3.4718, 24.3793)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F208A #7B8A20
analogous
#20468A #2F208A #64208A
triadic
#2F208A #8A2F20 #208A2F
tetradic
#2F208A #8A2046 #7B8A20 #208A64
square
#2F208A #8A2046 #7B8A20 #208A64
split-complementary
#2F208A #8A6420 #468A20
monochromatic
#0D0927 #1E1458 #2F208A #402CBC #624ED6

Accessibility & contrast

On white

12.39
#2F208A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2F208A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F208A
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F208A#FFFFFF#000000##FFFFFF
##2F208A1.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#003088
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f208a;
/* rgb */ color: rgb(47, 32, 138);
/* oklch */ color: oklch(34.3% 0.165 279.7);
Tailwind
colors: {
  custom: {
    50: '#755ead',
    500: '#2f208a',
    950: '#000000',
  },
}
SCSS
$custom: #2f208a;
$custom-light: #755ead;
$custom-dark: #000000;
JSON
{
  "hex": "#2f208a",
  "rgb": {
    "r": 47,
    "g": 32,
    "b": 138
  },
  "hsl": {
    "h": 248.491,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34331,
    "c": 0.16457,
    "h": 279.7
  },
  "luminance": 0.03472
}

Semantic roles & 50–950 ramp

primary
#2F208A
secondary
#AAB94D
accent
#E542CE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F208A

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

Preview Lab → · Contrast checker → · Palette generator →

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