#2F1058#2F1058

#2F1058 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.1% C 0.120 H 297.2°. Best body text is #FFFFFF at 15.72:1 contrast (WCAG AA passes).

Color values

HEX#2F1058
RGBrgb(47, 16, 88)
HSLhsl(266, 69%, 20%)
HSVhsv(266, 82%, 35%)
CMYKcmyk(46.6%, 81.8%, 0%, 65.5%)
CIE-LABlab(13.71, 32.03, -37.15)
CIE-LCHlch(13.71, 49.05, 310.77°)
OKLaboklab(27.06% 0.0546 -0.1063)
OKLCHoklch(27.06% 0.12 297.2)
XYZxyz(3.1186, 1.6794, 9.3905)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1058 #395810
analogous
#101558 #2F1058 #531058
triadic
#2F1058 #582F10 #10582F
tetradic
#2F1058 #581015 #395810 #105853
square
#2F1058 #581015 #395810 #105853
split-complementary
#2F1058 #585310 #155810
monochromatic
#0E051A #130724 #2F1058 #4B198C #6623C0

Accessibility & contrast

On white

15.72
#2F1058 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2F1058 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1058
15.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1058#FFFFFF#000000##FFFFFF
##2F10581.0015.721.3415.72
#FFFFFF15.721.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235A
Deuteranopia (green-blind)
#002257
Tritanopia (blue-blind)
#242333
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2f1058;
/* rgb */ color: rgb(47, 16, 88);
/* oklch */ color: oklch(27.1% 0.120 297.2);
Tailwind
colors: {
  custom: {
    50: '#6c5288',
    500: '#2f1058',
    950: '#000000',
  },
}
SCSS
$custom: #2f1058;
$custom-light: #6c5288;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1058",
  "rgb": {
    "r": 47,
    "g": 16,
    "b": 88
  },
  "hsl": {
    "h": 265.833,
    "s": 69.231,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27055,
    "c": 0.11952,
    "h": 297.2
  },
  "luminance": 0.0168
}

Semantic roles & 50–950 ramp

primary
#2F1058
secondary
#689132
accent
#EC3CA0
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2F1058

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

Preview Lab → · Contrast checker → · Palette generator →

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