#2F1153#2F1153

#2F1153 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.7% C 0.112 H 299.3°. Best body text is #FFFFFF at 15.84:1 contrast (WCAG AA passes).

Color values

HEX#2F1153
RGBrgb(47, 17, 83)
HSLhsl(267, 66%, 20%)
HSVhsv(267, 80%, 33%)
CMYKcmyk(43.4%, 79.5%, 0%, 67.5%)
CIE-LABlab(13.41, 30.08, -34.24)
CIE-LCHlch(13.41, 45.57, 311.30°)
OKLaboklab(26.7% 0.0549 -0.0978)
OKLCHoklch(26.7% 0.112 299.3)
XYZxyz(2.9337, 1.6297, 8.3419)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1153 #355311
analogous
#111453 #2F1153 #501153
triadic
#2F1153 #532F11 #11532F
tetradic
#2F1153 #531114 #355311 #115350
square
#2F1153 #531114 #355311 #115350
split-complementary
#2F1153 #535011 #145311
monochromatic
#0E0519 #120720 #2F1153 #4C1B86 #6926B9

Accessibility & contrast

On white

15.84
#2F1153 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2F1153 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1153
15.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1153#FFFFFF#000000##FFFFFF
##2F11531.0015.841.3315.84
#FFFFFF15.841.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002255
Deuteranopia (green-blind)
#002252
Tritanopia (blue-blind)
#262231
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2f1153;
/* rgb */ color: rgb(47, 17, 83);
/* oklch */ color: oklch(26.7% 0.112 299.3);
Tailwind
colors: {
  custom: {
    50: '#6c5284',
    500: '#2f1153',
    950: '#000000',
  },
}
SCSS
$custom: #2f1153;
$custom-light: #6c5284;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1153",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 83
  },
  "hsl": {
    "h": 267.273,
    "s": 66,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26699,
    "c": 0.11215,
    "h": 299.3
  },
  "luminance": 0.0163
}

Semantic roles & 50–950 ramp

primary
#2F1153
secondary
#648C34
accent
#E93F9C
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2F1153

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

Preview Lab → · Contrast checker → · Palette generator →

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