#2F0CBB#2F0CBB

#2F0CBB is a dark, highly saturated violet. Relative luminance 0.045; OKLCH L 38.3% C 0.233 H 274.6°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#2F0CBB
RGBrgb(47, 12, 187)
HSLhsl(252, 88%, 39%)
HSVhsv(252, 94%, 73%)
CMYKcmyk(74.9%, 93.6%, 0%, 26.7%)
CIE-LABlab(25.12, 60.91, -80.60)
CIE-LCHlch(25.12, 101.03, 307.08°)
OKLaboklab(38.27% 0.0187 -0.2327)
OKLCHoklch(38.27% 0.233 274.6)
XYZxyz(10.2704, 4.4541, 47.3225)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0CBB #98BB0C
analogous
#0C41BB #2F0CBB #870CBB
triadic
#2F0CBB #BB2F0C #0CBB2F
tetradic
#2F0CBB #BB0C41 #98BB0C #0CBB87
square
#2F0CBB #BB0C41 #98BB0C #0CBB87
split-complementary
#2F0CBB #BB870C #41BB0C
monochromatic
#120548 #210881 #2F0CBB #4014F0 #6F4EF4

Accessibility & contrast

On white

11.11
#2F0CBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2F0CBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0CBB
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0CBB#FFFFFF#000000##FFFFFF
##2F0CBB1.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043BF
Deuteranopia (green-blind)
#0034B8
Tritanopia (blue-blind)
#004D6D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f0cbb;
/* rgb */ color: rgb(47, 12, 187);
/* oklch */ color: oklch(38.3% 0.233 274.6);
Tailwind
colors: {
  custom: {
    50: '#8159d1',
    500: '#2f0cbb',
    950: '#000000',
  },
}
SCSS
$custom: #2f0cbb;
$custom-light: #8159d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0cbb",
  "rgb": {
    "r": 47,
    "g": 12,
    "b": 187
  },
  "hsl": {
    "h": 252,
    "s": 87.94,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38268,
    "c": 0.23347,
    "h": 274.6
  },
  "luminance": 0.04455
}

Semantic roles & 50–950 ramp

primary
#2F0CBB
secondary
#BAD54E
accent
#FE2AD4
background
#F8F5FD
surface
#F0E9FA
border
#CBC5D3
text
#0C0414
muted
#7D7983

Preview Lab

Preview with #2F0CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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