#2F12A0#2F12A0

#2F12A0 is a dark, highly saturated violet. Relative luminance 0.036; OKLCH L 35.3% C 0.202 H 277.7°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#2F12A0
RGBrgb(47, 18, 160)
HSLhsl(252, 80%, 35%)
HSVhsv(252, 89%, 63%)
CMYKcmyk(70.6%, 88.8%, 0%, 37.3%)
CIE-LABlab(22.21, 51.94, -69.18)
CIE-LCHlch(22.21, 86.51, 306.90°)
OKLaboklab(35.33% 0.0271 -0.1998)
OKLCHoklch(35.33% 0.202 277.7)
XYZxyz(7.7317, 3.5743, 33.5333)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F12A0 #83A012
analogous
#123CA0 #2F12A0 #7612A0
triadic
#2F12A0 #A02F12 #12A02F
tetradic
#2F12A0 #A0123C #83A012 #12A076
square
#2F12A0 #A0123C #83A012 #12A076
split-complementary
#2F12A0 #A07612 #3CA012
monochromatic
#0F0632 #1F0C69 #2F12A0 #3F18D7 #6543EA

Accessibility & contrast

On white

12.24
#2F12A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2F12A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F12A0
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F12A0#FFFFFF#000000##FFFFFF
##2F12A01.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003AA4
Deuteranopia (green-blind)
#002F9E
Tritanopia (blue-blind)
#00425E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f12a0;
/* rgb */ color: rgb(47, 18, 160);
/* oklch */ color: oklch(35.3% 0.202 277.7);
Tailwind
colors: {
  custom: {
    50: '#7a59be',
    500: '#2f12a0',
    950: '#000000',
  },
}
SCSS
$custom: #2f12a0;
$custom-light: #7a59be;
$custom-dark: #000000;
JSON
{
  "hex": "#2f12a0",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 160
  },
  "hsl": {
    "h": 252.254,
    "s": 79.775,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35327,
    "c": 0.20159,
    "h": 277.7
  },
  "luminance": 0.03575
}

Semantic roles & 50–950 ramp

primary
#2F12A0
secondary
#AFCA44
accent
#F632CE
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2F12A0

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

Preview Lab → · Contrast checker → · Palette generator →

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