#2F1863#2F1863

#2F1863 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.2% C 0.124 H 290.7°. Best body text is #FFFFFF at 14.67:1 contrast (WCAG AA passes).

Color values

HEX#2F1863
RGBrgb(47, 24, 99)
HSLhsl(258, 61%, 24%)
HSVhsv(258, 76%, 39%)
CMYKcmyk(52.5%, 75.8%, 0%, 61.2%)
CIE-LABlab(16.30, 31.01, -40.26)
CIE-LCHlch(16.30, 50.82, 307.61°)
OKLaboklab(29.21% 0.0438 -0.1155)
OKLCHoklch(29.21% 0.124 290.7)
XYZxyz(3.7504, 2.1583, 12.0209)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1863 #4C6318
analogous
#182763 #2F1863 #551863
triadic
#2F1863 #632F18 #18632F
tetradic
#2F1863 #631827 #4C6318 #186355
square
#2F1863 #631827 #4C6318 #186355
split-complementary
#2F1863 #635518 #276318
monochromatic
#0C0619 #180C32 #2F1863 #462494 #5E30C6

Accessibility & contrast

On white

14.67
#2F1863 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2F1863 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1863
14.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1863#FFFFFF#000000##FFFFFF
##2F18631.0014.671.4314.67
#FFFFFF14.671.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A65
Deuteranopia (green-blind)
#002762
Tritanopia (blue-blind)
#1E2C3B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2f1863;
/* rgb */ color: rgb(47, 24, 99);
/* oklch */ color: oklch(29.2% 0.124 290.7);
Tailwind
colors: {
  custom: {
    50: '#6e5790',
    500: '#2f1863',
    950: '#000000',
  },
}
SCSS
$custom: #2f1863;
$custom-light: #6e5790;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1863",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 99
  },
  "hsl": {
    "h": 258.4,
    "s": 60.976,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29212,
    "c": 0.12354,
    "h": 290.7
  },
  "luminance": 0.02158
}

Semantic roles & 50–950 ramp

primary
#2F1863
secondary
#7D993E
accent
#E444B3
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030D
muted
#7B787D

Preview Lab

Preview with #2F1863

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

Preview Lab → · Contrast checker → · Palette generator →

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