#2F1858#2F1858

#2F1858 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.2% C 0.109 H 294.9°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#2F1858
RGBrgb(47, 24, 88)
HSLhsl(262, 57%, 22%)
HSVhsv(262, 73%, 35%)
CMYKcmyk(46.6%, 72.7%, 0%, 65.5%)
CIE-LABlab(15.29, 27.59, -34.57)
CIE-LCHlch(15.29, 44.23, 308.60°)
OKLaboklab(28.18% 0.0459 -0.0988)
OKLCHoklch(28.18% 0.109 294.9)
XYZxyz(3.2599, 1.9621, 9.4376)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1858 #415818
analogous
#182158 #2F1858 #4F1858
triadic
#2F1858 #582F18 #18582F
tetradic
#2F1858 #581821 #415818 #18584F
square
#2F1858 #581821 #415818 #18584F
split-complementary
#2F1858 #584F18 #215818
monochromatic
#0D0718 #150B28 #2F1858 #492588 #6232B8

Accessibility & contrast

On white

15.08
#2F1858 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1858
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1858#FFFFFF#000000##FFFFFF
##2F18581.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275A
Deuteranopia (green-blind)
#002557
Tritanopia (blue-blind)
#242735
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2f1858;
/* rgb */ color: rgb(47, 24, 88);
/* oklch */ color: oklch(28.2% 0.109 294.9);
Tailwind
colors: {
  custom: {
    50: '#6c5788',
    500: '#2f1858',
    950: '#000000',
  },
}
SCSS
$custom: #2f1858;
$custom-light: #6c5788;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1858",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 88
  },
  "hsl": {
    "h": 261.563,
    "s": 57.143,
    "l": 21.961
  },
  "oklch": {
    "l": 0.28177,
    "c": 0.10895,
    "h": 294.9
  },
  "luminance": 0.01962
}

Semantic roles & 50–950 ramp

primary
#2F1858
secondary
#718F3D
accent
#E047A9
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F1858

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

Preview Lab → · Contrast checker → · Palette generator →

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