#2F1267#2F1267

#2F1267 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.136 H 290.8°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#2F1267
RGBrgb(47, 18, 103)
HSLhsl(260, 70%, 24%)
HSVhsv(260, 83%, 40%)
CMYKcmyk(54.4%, 82.5%, 0%, 59.6%)
CIE-LABlab(15.57, 35.42, -44.09)
CIE-LCHlch(15.57, 56.56, 308.78°)
OKLaboklab(28.82% 0.0481 -0.1267)
OKLCHoklch(28.82% 0.136 290.8)
XYZxyz(3.8361, 2.0161, 13.0163)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1267 #4A6712
analogous
#121F67 #2F1267 #591267
triadic
#2F1267 #672F12 #12672F
tetradic
#2F1267 #67121F #4A6712 #126759
square
#2F1267 #67121F #4A6712 #126759
split-complementary
#2F1267 #675912 #1F6712
monochromatic
#0C051A #170933 #2F1267 #471B9B #5F24CF

Accessibility & contrast

On white

14.97
#2F1267 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2F1267 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1267
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1267#FFFFFF#000000##FFFFFF
##2F12671.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002869
Deuteranopia (green-blind)
#002565
Tritanopia (blue-blind)
#1B2A3C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2f1267;
/* rgb */ color: rgb(47, 18, 103);
/* oklch */ color: oklch(28.8% 0.136 290.8);
Tailwind
colors: {
  custom: {
    50: '#6f5493',
    500: '#2f1267',
    950: '#000000',
  },
}
SCSS
$custom: #2f1267;
$custom-light: #6f5493;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1267",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 103
  },
  "hsl": {
    "h": 260.471,
    "s": 70.248,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28824,
    "c": 0.13551,
    "h": 290.8
  },
  "luminance": 0.02016
}

Semantic roles & 50–950 ramp

primary
#2F1267
secondary
#7B9F36
accent
#ED3BB0
background
#F7F5F9
surface
#EDE8F1
border
#C8C4CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1267

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

Preview Lab → · Contrast checker → · Palette generator →

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