#2F1062#2F1062

#2F1062 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.1% C 0.132 H 293.0°. Best body text is #FFFFFF at 15.31:1 contrast (WCAG AA passes).

Color values

HEX#2F1062
RGBrgb(47, 16, 98)
HSLhsl(263, 72%, 22%)
HSVhsv(263, 84%, 38%)
CMYKcmyk(52%, 83.7%, 0%, 61.6%)
CIE-LABlab(14.72, 34.92, -42.19)
CIE-LCHlch(14.72, 54.77, 309.61°)
OKLaboklab(28.07% 0.0514 -0.1211)
OKLCHoklch(28.07% 0.132 293)
XYZxyz(3.5616, 1.8566, 11.7236)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1062 #436210
analogous
#101A62 #2F1062 #581062
triadic
#2F1062 #622F10 #10622F
tetradic
#2F1062 #62101A #436210 #106258
square
#2F1062 #62101A #436210 #106258
split-complementary
#2F1062 #625810 #1A6210
monochromatic
#0D041A #16072D #2F1062 #481997 #6121CB

Accessibility & contrast

On white

15.31
#2F1062 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2F1062 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1062
15.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1062#FFFFFF#000000##FFFFFF
##2F10621.0015.311.3715.31
#FFFFFF15.311.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002664
Deuteranopia (green-blind)
#002460
Tritanopia (blue-blind)
#1F2739
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2f1062;
/* rgb */ color: rgb(47, 16, 98);
/* oklch */ color: oklch(28.1% 0.132 293.0);
Tailwind
colors: {
  custom: {
    50: '#6e538f',
    500: '#2f1062',
    950: '#000000',
  },
}
SCSS
$custom: #2f1062;
$custom-light: #6e538f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1062",
  "rgb": {
    "r": 47,
    "g": 16,
    "b": 98
  },
  "hsl": {
    "h": 262.683,
    "s": 71.93,
    "l": 22.353
  },
  "oklch": {
    "l": 0.2807,
    "c": 0.13157,
    "h": 293
  },
  "luminance": 0.01857
}

Semantic roles & 50–950 ramp

primary
#2F1062
secondary
#749B33
accent
#EF39AA
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #2F1062

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

Preview Lab → · Contrast checker → · Palette generator →

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