#2F1455#2F1455

#2F1455 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.3% C 0.111 H 297.5°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#2F1455
RGBrgb(47, 20, 85)
HSLhsl(265, 62%, 21%)
HSVhsv(265, 76%, 33%)
CMYKcmyk(44.7%, 76.5%, 0%, 66.7%)
CIE-LABlab(14.18, 29.02, -34.35)
CIE-LCHlch(14.18, 44.97, 310.19°)
OKLaboklab(27.3% 0.0511 -0.0981)
OKLCHoklch(27.3% 0.111 297.5)
XYZxyz(3.0617, 1.7605, 8.7711)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1455 #3A5514
analogous
#141955 #2F1455 #4F1455
triadic
#2F1455 #552F14 #14552F
tetradic
#2F1455 #551419 #3A5514 #14554F
square
#2F1455 #551419 #3A5514 #14554F
split-complementary
#2F1455 #554F14 #195514
monochromatic
#0E0619 #140823 #2F1455 #4A2087 #662BB8

Accessibility & contrast

On white

15.53
#2F1455 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2F1455 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1455
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1455#FFFFFF#000000##FFFFFF
##2F14551.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002457
Deuteranopia (green-blind)
#002354
Tritanopia (blue-blind)
#252433
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2f1455;
/* rgb */ color: rgb(47, 20, 85);
/* oklch */ color: oklch(27.3% 0.111 297.5);
Tailwind
colors: {
  custom: {
    50: '#6c5485',
    500: '#2f1455',
    950: '#000000',
  },
}
SCSS
$custom: #2f1455;
$custom-light: #6c5485;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1455",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 85
  },
  "hsl": {
    "h": 264.923,
    "s": 61.905,
    "l": 20.588
  },
  "oklch": {
    "l": 0.273,
    "c": 0.11066,
    "h": 297.5
  },
  "luminance": 0.01761
}

Semantic roles & 50–950 ramp

primary
#2F1455
secondary
#6A8D38
accent
#E543A2
background
#F6F4F8
surface
#ECE8EF
border
#C7C4CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F1455

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

Preview Lab → · Contrast checker → · Palette generator →

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