#2F209B#2F209B

#2F209B is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.2% C 0.185 H 277.2°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#2F209B
RGBrgb(47, 32, 155)
HSLhsl(247, 66%, 37%)
HSVhsv(247, 79%, 61%)
CMYKcmyk(69.7%, 79.4%, 0%, 39.2%)
CIE-LABlab(23.68, 44.40, -63.68)
CIE-LCHlch(23.68, 77.63, 304.88°)
OKLaboklab(36.17% 0.0233 -0.184)
OKLCHoklch(36.17% 0.185 277.2)
XYZxyz(7.6033, 4.0032, 31.3760)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F209B #8C9B20
analogous
#204F9B #2F209B #6D209B
triadic
#2F209B #9B2F20 #209B2F
tetradic
#2F209B #9B204F #8C9B20 #209B6D
square
#2F209B #9B204F #8C9B20 #209B6D
split-complementary
#2F209B #9B6D20 #4F9B20
monochromatic
#100B36 #201668 #2F209B #3E2ACE #6959DD

Accessibility & contrast

On white

11.66
#2F209B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2F209B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F209B
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F209B#FFFFFF#000000##FFFFFF
##2F209B1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9E
Deuteranopia (green-blind)
#003399
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f209b;
/* rgb */ color: rgb(47, 32, 155);
/* oklch */ color: oklch(36.2% 0.185 277.2);
Tailwind
colors: {
  custom: {
    50: '#785fba',
    500: '#2f209b',
    950: '#000000',
  },
}
SCSS
$custom: #2f209b;
$custom-light: #785fba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f209b",
  "rgb": {
    "r": 47,
    "g": 32,
    "b": 155
  },
  "hsl": {
    "h": 247.317,
    "s": 65.775,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36169,
    "c": 0.18549,
    "h": 277.2
  },
  "luminance": 0.04004
}

Semantic roles & 50–950 ramp

primary
#2F209B
secondary
#B4C156
accent
#E93FD4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2F209B

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

Preview Lab → · Contrast checker → · Palette generator →

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