#2F1057#2F1057

#2F1057 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.118 H 297.6°. Best body text is #FFFFFF at 15.76:1 contrast (WCAG AA passes).

Color values

HEX#2F1057
RGBrgb(47, 16, 87)
HSLhsl(266, 69%, 20%)
HSVhsv(266, 82%, 34%)
CMYKcmyk(46%, 81.6%, 0%, 65.9%)
CIE-LABlab(13.61, 31.74, -36.63)
CIE-LCHlch(13.61, 48.47, 310.91°)
OKLaboklab(26.96% 0.0549 -0.1048)
OKLCHoklch(26.96% 0.118 297.6)
XYZxyz(3.0774, 1.6630, 9.1738)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1057 #385710
analogous
#101557 #2F1057 #521057
triadic
#2F1057 #572F10 #10572F
tetradic
#2F1057 #571015 #385710 #105752
square
#2F1057 #571015 #385710 #105752
split-complementary
#2F1057 #575210 #155710
monochromatic
#0E051A #130623 #2F1057 #4B1A8B #6723BE

Accessibility & contrast

On white

15.76
#2F1057 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2F1057 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1057
15.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1057#FFFFFF#000000##FFFFFF
##2F10571.0015.761.3315.76
#FFFFFF15.761.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002359
Deuteranopia (green-blind)
#002256
Tritanopia (blue-blind)
#252333
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2f1057;
/* rgb */ color: rgb(47, 16, 87);
/* oklch */ color: oklch(27.0% 0.118 297.6);
Tailwind
colors: {
  custom: {
    50: '#6c5287',
    500: '#2f1057',
    950: '#000000',
  },
}
SCSS
$custom: #2f1057;
$custom-light: #6c5287;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1057",
  "rgb": {
    "r": 47,
    "g": 16,
    "b": 87
  },
  "hsl": {
    "h": 266.197,
    "s": 68.932,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26957,
    "c": 0.1183,
    "h": 297.6
  },
  "luminance": 0.01663
}

Semantic roles & 50–950 ramp

primary
#2F1057
secondary
#679032
accent
#EC3C9F
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2F1057

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

Preview Lab → · Contrast checker → · Palette generator →

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