#2F1458#2F1458

#2F1458 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.6% C 0.115 H 296.2°. Best body text is #FFFFFF at 15.42:1 contrast (WCAG AA passes).

Color values

HEX#2F1458
RGBrgb(47, 20, 88)
HSLhsl(264, 63%, 21%)
HSVhsv(264, 77%, 35%)
CMYKcmyk(46.6%, 77.3%, 0%, 65.5%)
CIE-LABlab(14.45, 29.91, -35.93)
CIE-LCHlch(14.45, 46.75, 309.78°)
OKLaboklab(27.58% 0.0505 -0.1028)
OKLCHoklch(27.58% 0.115 296.2)
XYZxyz(3.1834, 1.8092, 9.4121)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1458 #3D5814
analogous
#141B58 #2F1458 #511458
triadic
#2F1458 #582F14 #14582F
tetradic
#2F1458 #58141B #3D5814 #145851
square
#2F1458 #58141B #3D5814 #145851
split-complementary
#2F1458 #585114 #1B5814
monochromatic
#0D0619 #140926 #2F1458 #4A1F8A #642BBC

Accessibility & contrast

On white

15.42
#2F1458 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2F1458 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1458
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1458#FFFFFF#000000##FFFFFF
##2F14581.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255A
Deuteranopia (green-blind)
#002457
Tritanopia (blue-blind)
#242534
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2f1458;
/* rgb */ color: rgb(47, 20, 88);
/* oklch */ color: oklch(27.6% 0.115 296.2);
Tailwind
colors: {
  custom: {
    50: '#6c5488',
    500: '#2f1458',
    950: '#000000',
  },
}
SCSS
$custom: #2f1458;
$custom-light: #6c5488;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1458",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 88
  },
  "hsl": {
    "h": 263.824,
    "s": 62.963,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27582,
    "c": 0.1145,
    "h": 296.2
  },
  "luminance": 0.01809
}

Semantic roles & 50–950 ramp

primary
#2F1458
secondary
#6D9038
accent
#E642A5
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F1458

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

Preview Lab → · Contrast checker → · Palette generator →

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