#2F1954#2F1954

#2F1954 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.102 H 296.3°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#2F1954
RGBrgb(47, 25, 84)
HSLhsl(262, 54%, 21%)
HSVhsv(262, 70%, 33%)
CMYKcmyk(44%, 70.2%, 0%, 67.1%)
CIE-LABlab(15.17, 25.75, -32.06)
CIE-LCHlch(15.17, 41.12, 308.77°)
OKLaboklab(27.98% 0.0453 -0.0914)
OKLCHoklch(27.98% 0.102 296.3)
XYZxyz(3.1197, 1.9396, 8.5958)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1954 #3E5419
analogous
#192154 #2F1954 #4D1954
triadic
#2F1954 #542F19 #19542F
tetradic
#2F1954 #541921 #3E5419 #19544D
square
#2F1954 #541921 #3E5419 #19544D
split-complementary
#2F1954 #544D19 #215419
monochromatic
#0D0718 #150B25 #2F1954 #492783 #6435B2

Accessibility & contrast

On white

15.13
#2F1954 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1954
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1954#FFFFFF#000000##FFFFFF
##2F19541.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002656
Deuteranopia (green-blind)
#002553
Tritanopia (blue-blind)
#262734
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2f1954;
/* rgb */ color: rgb(47, 25, 84);
/* oklch */ color: oklch(28.0% 0.102 296.3);
Tailwind
colors: {
  custom: {
    50: '#6b5785',
    500: '#2f1954',
    950: '#000000',
  },
}
SCSS
$custom: #2f1954;
$custom-light: #6b5785;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1954",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 84
  },
  "hsl": {
    "h": 262.373,
    "s": 54.128,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27983,
    "c": 0.10201,
    "h": 296.3
  },
  "luminance": 0.0194
}

Semantic roles & 50–950 ramp

primary
#2F1954
secondary
#6E8A3E
accent
#DD4AA7
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F1954

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

Preview Lab → · Contrast checker → · Palette generator →

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