#2F1263#2F1263

#2F1263 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.4% C 0.131 H 292.2°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#2F1263
RGBrgb(47, 18, 99)
HSLhsl(261, 69%, 23%)
HSVhsv(261, 82%, 39%)
CMYKcmyk(52.5%, 81.8%, 0%, 61.2%)
CIE-LABlab(15.16, 34.24, -42.13)
CIE-LCHlch(15.16, 54.29, 309.10°)
OKLaboklab(28.41% 0.0494 -0.121)
OKLCHoklch(28.41% 0.131 292.2)
XYZxyz(3.6401, 1.9377, 11.9842)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1263 #466312
analogous
#121E63 #2F1263 #571263
triadic
#2F1263 #632F12 #12632F
tetradic
#2F1263 #63121E #466312 #126357
square
#2F1263 #63121E #466312 #126357
split-complementary
#2F1263 #635712 #1E6312
monochromatic
#0C051A #16092F #2F1263 #481B97 #6025CB

Accessibility & contrast

On white

15.13
#2F1263 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1263
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1263#FFFFFF#000000##FFFFFF
##2F12631.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002765
Deuteranopia (green-blind)
#002461
Tritanopia (blue-blind)
#1E293A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2f1263;
/* rgb */ color: rgb(47, 18, 99);
/* oklch */ color: oklch(28.4% 0.131 292.2);
Tailwind
colors: {
  custom: {
    50: '#6e5490',
    500: '#2f1263',
    950: '#000000',
  },
}
SCSS
$custom: #2f1263;
$custom-light: #6e5490;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1263",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 99
  },
  "hsl": {
    "h": 261.481,
    "s": 69.231,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28409,
    "c": 0.13065,
    "h": 292.2
  },
  "luminance": 0.01938
}

Semantic roles & 50–950 ramp

primary
#2F1263
secondary
#779B36
accent
#EC3CAD
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#08030D
muted
#7B787D

Preview Lab

Preview with #2F1263

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

Preview Lab → · Contrast checker → · Palette generator →

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