#2F17A0#2F17A0

#2F17A0 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.8% C 0.198 H 277.4°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#2F17A0
RGBrgb(47, 23, 160)
HSLhsl(251, 75%, 36%)
HSVhsv(251, 86%, 63%)
CMYKcmyk(70.6%, 85.6%, 0%, 37.3%)
CIE-LABlab(22.84, 50.06, -68.13)
CIE-LCHlch(22.84, 84.55, 306.31°)
OKLaboklab(35.76% 0.0255 -0.1968)
OKLCHoklch(35.76% 0.198 277.4)
XYZxyz(7.8218, 3.7545, 33.5634)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F17A0 #88A017
analogous
#1743A0 #2F17A0 #7317A0
triadic
#2F17A0 #A02F17 #17A02F
tetradic
#2F17A0 #A01743 #88A017 #17A073
square
#2F17A0 #A01743 #88A017 #17A073
split-complementary
#2F17A0 #A07317 #43A017
monochromatic
#100835 #1F0F6A #2F17A0 #3F1FD6 #674CE5

Accessibility & contrast

On white

11.99
#2F17A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2F17A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F17A0
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F17A0#FFFFFF#000000##FFFFFF
##2F17A01.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA4
Deuteranopia (green-blind)
#00319E
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f17a0;
/* rgb */ color: rgb(47, 23, 160);
/* oklch */ color: oklch(35.8% 0.198 277.4);
Tailwind
colors: {
  custom: {
    50: '#7a5bbe',
    500: '#2f17a0',
    950: '#000000',
  },
}
SCSS
$custom: #2f17a0;
$custom-light: #7a5bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2f17a0",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 250.511,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35757,
    "c": 0.19846,
    "h": 277.4
  },
  "luminance": 0.03755
}

Semantic roles & 50–950 ramp

primary
#2F17A0
secondary
#B1C74C
accent
#F136D1
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2F17A0

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

Preview Lab → · Contrast checker → · Palette generator →

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