#2F1269#2F1269

#2F1269 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.138 H 290.1°. Best body text is #FFFFFF at 14.88:1 contrast (WCAG AA passes).

Color values

HEX#2F1269
RGBrgb(47, 18, 105)
HSLhsl(260, 71%, 24%)
HSVhsv(260, 83%, 41%)
CMYKcmyk(55.2%, 82.9%, 0%, 58.8%)
CIE-LABlab(15.78, 36.02, -45.06)
CIE-LCHlch(15.78, 57.69, 308.64°)
OKLaboklab(29.04% 0.0474 -0.1295)
OKLCHoklch(29.04% 0.138 290.1)
XYZxyz(3.9377, 2.0567, 13.5514)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1269 #4C6912
analogous
#122169 #2F1269 #5B1269
triadic
#2F1269 #692F12 #12692F
tetradic
#2F1269 #691221 #4C6912 #12695B
square
#2F1269 #691221 #4C6912 #12695B
split-complementary
#2F1269 #695B12 #216912
monochromatic
#0C041A #180935 #2F1269 #461B9D #5E24D1

Accessibility & contrast

On white

14.88
#2F1269 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2F1269 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1269
14.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1269#FFFFFF#000000##FFFFFF
##2F12691.0014.881.4114.88
#FFFFFF14.881.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296B
Deuteranopia (green-blind)
#002567
Tritanopia (blue-blind)
#192B3D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2f1269;
/* rgb */ color: rgb(47, 18, 105);
/* oklch */ color: oklch(29.0% 0.138 290.1);
Tailwind
colors: {
  custom: {
    50: '#6f5495',
    500: '#2f1269',
    950: '#000000',
  },
}
SCSS
$custom: #2f1269;
$custom-light: #6f5495;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1269",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 105
  },
  "hsl": {
    "h": 260,
    "s": 70.732,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29035,
    "c": 0.13794,
    "h": 290.1
  },
  "luminance": 0.02057
}

Semantic roles & 50–950 ramp

primary
#2F1269
secondary
#7DA136
accent
#ED3AB2
background
#F7F5F9
surface
#EDE8F2
border
#C8C4CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1269

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

Preview Lab → · Contrast checker → · Palette generator →

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