#2F13A1#2F13A1

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

Color values

HEX#2F13A1
RGBrgb(47, 19, 161)
HSLhsl(252, 79%, 35%)
HSVhsv(252, 88%, 63%)
CMYKcmyk(70.8%, 88.2%, 0%, 36.9%)
CIE-LABlab(22.45, 51.87, -69.39)
CIE-LCHlch(22.45, 86.63, 306.78°)
OKLaboklab(35.53% 0.0265 -0.2004)
OKLCHoklch(35.53% 0.202 277.5)
XYZxyz(7.8361, 3.6426, 34.0014)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F13A1 #85A113
analogous
#133EA1 #2F13A1 #7613A1
triadic
#2F13A1 #A12F13 #13A12F
tetradic
#2F13A1 #A1133E #85A113 #13A176
square
#2F13A1 #A1133E #85A113 #13A176
split-complementary
#2F13A1 #A17613 #3EA113
monochromatic
#0F0634 #1F0D6A #2F13A1 #3F19D8 #6645E9

Accessibility & contrast

On white

12.15
#2F13A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2F13A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F13A1
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F13A1#FFFFFF#000000##FFFFFF
##2F13A11.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA5
Deuteranopia (green-blind)
#00309F
Tritanopia (blue-blind)
#00435E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f13a1;
/* rgb */ color: rgb(47, 19, 161);
/* oklch */ color: oklch(35.5% 0.202 277.5);
Tailwind
colors: {
  custom: {
    50: '#7b59be',
    500: '#2f13a1',
    950: '#000000',
  },
}
SCSS
$custom: #2f13a1;
$custom-light: #7b59be;
$custom-dark: #000000;
JSON
{
  "hex": "#2f13a1",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 161
  },
  "hsl": {
    "h": 251.831,
    "s": 78.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35526,
    "c": 0.20212,
    "h": 277.5
  },
  "luminance": 0.03643
}

Semantic roles & 50–950 ramp

primary
#2F13A1
secondary
#B0CA46
accent
#F532CF
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2F13A1

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

Preview Lab → · Contrast checker → · Palette generator →

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