#2F2155#2F2155

#2F2155 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.5% C 0.090 H 292.4°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#2F2155
RGBrgb(47, 33, 85)
HSLhsl(256, 44%, 23%)
HSVhsv(256, 61%, 33%)
CMYKcmyk(44.7%, 61.2%, 0%, 66.7%)
CIE-LABlab(17.22, 20.85, -29.43)
CIE-LCHlch(17.22, 36.07, 305.32°)
OKLaboklab(29.5% 0.0344 -0.0837)
OKLCHoklch(29.5% 0.091 292.4)
XYZxyz(3.3554, 2.3478, 8.8690)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2155 #475521
analogous
#212D55 #2F2155 #492155
triadic
#2F2155 #552F21 #21552F
tetradic
#2F2155 #55212D #475521 #215549
square
#2F2155 #55212D #475521 #215549
split-complementary
#2F2155 #554921 #2D5521
monochromatic
#0C0916 #171029 #2F2155 #473281 #6043AD

Accessibility & contrast

On white

14.29
#2F2155 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2F2155 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2155
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2155#FFFFFF#000000##FFFFFF
##2F21551.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062B57
Deuteranopia (green-blind)
#092954
Tritanopia (blue-blind)
#252C37
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2f2155;
/* rgb */ color: rgb(47, 33, 85);
/* oklch */ color: oklch(29.5% 0.090 292.4);
Tailwind
colors: {
  custom: {
    50: '#6b5c85',
    500: '#2f2155',
    950: '#000000',
  },
}
SCSS
$custom: #2f2155;
$custom-light: #6b5c85;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2155",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 85
  },
  "hsl": {
    "h": 256.154,
    "s": 44.068,
    "l": 23.137
  },
  "oklch": {
    "l": 0.29504,
    "c": 0.0905,
    "h": 292.4
  },
  "luminance": 0.02348
}

Semantic roles & 50–950 ramp

primary
#2F2155
secondary
#788949
accent
#D454B1
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #2F2155

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

Preview Lab → · Contrast checker → · Palette generator →

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