#2F1258#2F1258

#2F1258 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.3% C 0.117 H 296.7°. Best body text is #FFFFFF at 15.57:1 contrast (WCAG AA passes).

Color values

HEX#2F1258
RGBrgb(47, 18, 88)
HSLhsl(265, 66%, 21%)
HSVhsv(265, 80%, 35%)
CMYKcmyk(46.6%, 79.5%, 0%, 65.5%)
CIE-LABlab(14.07, 31.00, -36.56)
CIE-LCHlch(14.07, 47.93, 310.30°)
OKLaboklab(27.31% 0.0526 -0.1046)
OKLCHoklch(27.31% 0.117 296.7)
XYZxyz(3.1496, 1.7415, 9.4008)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1258 #3B5812
analogous
#121858 #2F1258 #521258
triadic
#2F1258 #582F12 #12582F
tetradic
#2F1258 #581218 #3B5812 #125852
square
#2F1258 #581218 #3B5812 #125852
split-complementary
#2F1258 #585212 #185812
monochromatic
#0E0519 #140825 #2F1258 #4A1C8B #6527BE

Accessibility & contrast

On white

15.57
#2F1258 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1258
15.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1258#FFFFFF#000000##FFFFFF
##2F12581.0015.571.3515.57
#FFFFFF15.571.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245A
Deuteranopia (green-blind)
#002357
Tritanopia (blue-blind)
#242434
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2f1258;
/* rgb */ color: rgb(47, 18, 88);
/* oklch */ color: oklch(27.3% 0.117 296.7);
Tailwind
colors: {
  custom: {
    50: '#6c5388',
    500: '#2f1258',
    950: '#000000',
  },
}
SCSS
$custom: #2f1258;
$custom-light: #6c5388;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1258",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 88
  },
  "hsl": {
    "h": 264.857,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.2731,
    "c": 0.11709,
    "h": 296.7
  },
  "luminance": 0.01742
}

Semantic roles & 50–950 ramp

primary
#2F1258
secondary
#6B9135
accent
#E93FA2
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2F1258

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

Preview Lab → · Contrast checker → · Palette generator →

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