#2F1864#2F1864

#2F1864 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.3% C 0.125 H 290.4°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#2F1864
RGBrgb(47, 24, 100)
HSLhsl(258, 61%, 24%)
HSVhsv(258, 76%, 39%)
CMYKcmyk(53%, 76%, 0%, 60.8%)
CIE-LABlab(16.39, 31.32, -40.76)
CIE-LCHlch(16.39, 51.41, 307.54°)
OKLaboklab(29.31% 0.0435 -0.117)
OKLCHoklch(29.31% 0.125 290.4)
XYZxyz(3.7985, 2.1776, 12.2743)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1864 #4D6418
analogous
#182764 #2F1864 #551864
triadic
#2F1864 #642F18 #18642F
tetradic
#2F1864 #641827 #4D6418 #186455
square
#2F1864 #641827 #4D6418 #186455
split-complementary
#2F1864 #645518 #276418
monochromatic
#0C0619 #180C33 #2F1864 #462495 #5D30C7

Accessibility & contrast

On white

14.63
#2F1864 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2F1864 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1864
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1864#FFFFFF#000000##FFFFFF
##2F18641.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A66
Deuteranopia (green-blind)
#002763
Tritanopia (blue-blind)
#1D2C3C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2f1864;
/* rgb */ color: rgb(47, 24, 100);
/* oklch */ color: oklch(29.3% 0.125 290.4);
Tailwind
colors: {
  custom: {
    50: '#6e5791',
    500: '#2f1864',
    950: '#000000',
  },
}
SCSS
$custom: #2f1864;
$custom-light: #6e5791;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1864",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 100
  },
  "hsl": {
    "h": 258.158,
    "s": 61.29,
    "l": 24.314
  },
  "oklch": {
    "l": 0.2931,
    "c": 0.12484,
    "h": 290.4
  },
  "luminance": 0.02178
}

Semantic roles & 50–950 ramp

primary
#2F1864
secondary
#7E9A3E
accent
#E443B4
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1864

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

Preview Lab → · Contrast checker → · Palette generator →

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