#2F2157#2F2157

#2F2157 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.7% C 0.094 H 291.6°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#2F2157
RGBrgb(47, 33, 87)
HSLhsl(256, 45%, 24%)
HSVhsv(256, 62%, 34%)
CMYKcmyk(46%, 62.1%, 0%, 65.9%)
CIE-LABlab(17.37, 21.50, -30.53)
CIE-LCHlch(17.37, 37.34, 305.16°)
OKLaboklab(29.66% 0.0345 -0.0869)
OKLCHoklch(29.66% 0.094 291.6)
XYZxyz(3.4360, 2.3801, 9.2933)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2157 #495721
analogous
#212E57 #2F2157 #4A2157
triadic
#2F2157 #572F21 #21572F
tetradic
#2F2157 #57212E #495721 #21574A
square
#2F2157 #57212E #495721 #21574A
split-complementary
#2F2157 #574A21 #2E5721
monochromatic
#0C0816 #17102B #2F2157 #473283 #5F43B0

Accessibility & contrast

On white

14.23
#2F2157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2F2157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2157
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2157#FFFFFF#000000##FFFFFF
##2F21571.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032B59
Deuteranopia (green-blind)
#062A56
Tritanopia (blue-blind)
#242D38
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2f2157;
/* rgb */ color: rgb(47, 33, 87);
/* oklch */ color: oklch(29.7% 0.094 291.6);
Tailwind
colors: {
  custom: {
    50: '#6b5d87',
    500: '#2f2157',
    950: '#000000',
  },
}
SCSS
$custom: #2f2157;
$custom-light: #6b5d87;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2157",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 87
  },
  "hsl": {
    "h": 255.556,
    "s": 45,
    "l": 23.529
  },
  "oklch": {
    "l": 0.29664,
    "c": 0.09351,
    "h": 291.6
  },
  "luminance": 0.0238
}

Semantic roles & 50–950 ramp

primary
#2F2157
secondary
#7A8B49
accent
#D553B3
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #2F2157

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

Preview Lab → · Contrast checker → · Palette generator →

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