#2F1962#2F1962

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

Color values

HEX#2F1962
RGBrgb(47, 25, 98)
HSLhsl(258, 59%, 24%)
HSVhsv(258, 74%, 38%)
CMYKcmyk(52%, 74.5%, 0%, 61.6%)
CIE-LABlab(16.41, 30.12, -39.41)
CIE-LCHlch(16.41, 49.60, 307.39°)
OKLaboklab(29.26% 0.043 -0.113)
OKLCHoklch(29.26% 0.121 290.8)
XYZxyz(3.7239, 2.1813, 11.7777)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1962 #4C6219
analogous
#192862 #2F1962 #541962
triadic
#2F1962 #622F19 #19622F
tetradic
#2F1962 #621928 #4C6219 #196254
square
#2F1962 #621928 #4C6219 #196254
split-complementary
#2F1962 #625419 #286219
monochromatic
#0C0618 #180D31 #2F1962 #462593 #5E32C4

Accessibility & contrast

On white

14.62
#2F1962 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1962
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1962#FFFFFF#000000##FFFFFF
##2F19621.0014.621.4414.62
#FFFFFF14.621.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A64
Deuteranopia (green-blind)
#002761
Tritanopia (blue-blind)
#1E2C3B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2f1962;
/* rgb */ color: rgb(47, 25, 98);
/* oklch */ color: oklch(29.3% 0.121 290.8);
Tailwind
colors: {
  custom: {
    50: '#6d588f',
    500: '#2f1962',
    950: '#000000',
  },
}
SCSS
$custom: #2f1962;
$custom-light: #6d588f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1962",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 98
  },
  "hsl": {
    "h": 258.082,
    "s": 59.35,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29264,
    "c": 0.12092,
    "h": 290.8
  },
  "luminance": 0.02181
}

Semantic roles & 50–950 ramp

primary
#2F1962
secondary
#7D983F
accent
#E345B3
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F1962

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

Preview Lab → · Contrast checker → · Palette generator →

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