#2F11B4#2F11B4

#2F11B4 is a dark, highly saturated violet. Relative luminance 0.043; OKLCH L 37.7% C 0.224 H 275.2°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#2F11B4
RGBrgb(47, 17, 180)
HSLhsl(251, 83%, 39%)
HSVhsv(251, 91%, 71%)
CMYKcmyk(73.9%, 90.6%, 0%, 29.4%)
CIE-LABlab(24.64, 57.76, -77.23)
CIE-LCHlch(24.64, 96.44, 306.79°)
OKLaboklab(37.69% 0.0203 -0.2231)
OKLCHoklch(37.69% 0.224 275.2)
XYZxyz(9.6083, 4.2996, 43.4947)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F11B4 #96B411
analogous
#1144B4 #2F11B4 #8011B4
triadic
#2F11B4 #B42F11 #11B42F
tetradic
#2F11B4 #B41144 #96B411 #11B480
square
#2F11B4 #B41144 #96B411 #11B480
split-complementary
#2F11B4 #B48011 #44B411
monochromatic
#120644 #200C7C #2F11B4 #3F19E9 #6E51EF

Accessibility & contrast

On white

11.29
#2F11B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2F11B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F11B4
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F11B4#FFFFFF#000000##FFFFFF
##2F11B41.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041B8
Deuteranopia (green-blind)
#0033B1
Tritanopia (blue-blind)
#004B6A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f11b4;
/* rgb */ color: rgb(47, 17, 180);
/* oklch */ color: oklch(37.7% 0.224 275.2);
Tailwind
colors: {
  custom: {
    50: '#7f5acc',
    500: '#2f11b4',
    950: '#000000',
  },
}
SCSS
$custom: #2f11b4;
$custom-light: #7f5acc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f11b4",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 180
  },
  "hsl": {
    "h": 251.043,
    "s": 82.741,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37688,
    "c": 0.22398,
    "h": 275.2
  },
  "luminance": 0.04301
}

Semantic roles & 50–950 ramp

primary
#2F11B4
secondary
#B9D050
accent
#F92FD4
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0414
muted
#7D7982

Preview Lab

Preview with #2F11B4

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

Preview Lab → · Contrast checker → · Palette generator →

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