#2F0F68#2F0F68

#2F0F68 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.6% C 0.140 H 291.0°. Best body text is #FFFFFF at 15.12:1 contrast (WCAG AA passes).

Color values

HEX#2F0F68
RGBrgb(47, 15, 104)
HSLhsl(262, 75%, 23%)
HSVhsv(262, 86%, 41%)
CMYKcmyk(54.8%, 85.6%, 0%, 59.2%)
CIE-LABlab(15.20, 37.11, -45.36)
CIE-LCHlch(15.20, 58.61, 309.29°)
OKLaboklab(28.6% 0.05 -0.1304)
OKLCHoklch(28.6% 0.14 291)
XYZxyz(3.8411, 1.9453, 13.2671)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0F68 #48680F
analogous
#0F1B68 #2F0F68 #5B0F68
triadic
#2F0F68 #682F0F #0F682F
tetradic
#2F0F68 #680F1B #48680F #0F685B
square
#2F0F68 #680F1B #48680F #0F685B
split-complementary
#2F0F68 #685B0F #1B680F
monochromatic
#0C041B #170733 #2F0F68 #47179D #5F1ED3

Accessibility & contrast

On white

15.12
#2F0F68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2F0F68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0F68
15.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0F68#FFFFFF#000000##FFFFFF
##2F0F681.0015.121.3915.12
#FFFFFF15.121.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00276A
Deuteranopia (green-blind)
#002466
Tritanopia (blue-blind)
#1A293C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2f0f68;
/* rgb */ color: rgb(47, 15, 104);
/* oklch */ color: oklch(28.6% 0.140 291.0);
Tailwind
colors: {
  custom: {
    50: '#6f5294',
    500: '#2f0f68',
    950: '#000000',
  },
}
SCSS
$custom: #2f0f68;
$custom-light: #6f5294;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0f68",
  "rgb": {
    "r": 47,
    "g": 15,
    "b": 104
  },
  "hsl": {
    "h": 261.573,
    "s": 74.79,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28597,
    "c": 0.13965,
    "h": 291
  },
  "luminance": 0.01945
}

Semantic roles & 50–950 ramp

primary
#2F0F68
secondary
#79A132
accent
#F136AE
background
#F7F4F9
surface
#EDE7F1
border
#C8C3CB
text
#08020D
muted
#7B787E

Preview Lab

Preview with #2F0F68

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

Preview Lab → · Contrast checker → · Palette generator →

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