#2F2161#2F2161

#2F2161 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.5% C 0.108 H 288.3°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#2F2161
RGBrgb(47, 33, 97)
HSLhsl(253, 49%, 25%)
HSVhsv(253, 66%, 38%)
CMYKcmyk(51.5%, 66%, 0%, 62%)
CIE-LABlab(18.17, 24.80, -35.89)
CIE-LCHlch(18.17, 43.63, 304.64°)
OKLaboklab(30.5% 0.034 -0.1027)
OKLCHoklch(30.5% 0.108 288.3)
XYZxyz(3.8732, 2.5550, 11.5960)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2161 #536121
analogous
#213361 #2F2161 #4F2161
triadic
#2F2161 #612F21 #21612F
tetradic
#2F2161 #612133 #536121 #21614F
square
#2F2161 #612133 #536121 #21614F
split-complementary
#2F2161 #614F21 #336121
monochromatic
#0B0817 #191133 #2F2161 #45318F #5B40BC

Accessibility & contrast

On white

13.90
#2F2161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2F2161 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2161
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2161#FFFFFF#000000##FFFFFF
##2F21611.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E63
Deuteranopia (green-blind)
#002B60
Tritanopia (blue-blind)
#1E303D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2f2161;
/* rgb */ color: rgb(47, 33, 97);
/* oklch */ color: oklch(30.5% 0.108 288.3);
Tailwind
colors: {
  custom: {
    50: '#6c5d8e',
    500: '#2f2161',
    950: '#000000',
  },
}
SCSS
$custom: #2f2161;
$custom-light: #6c5d8e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2161",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 97
  },
  "hsl": {
    "h": 253.125,
    "s": 49.231,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30502,
    "c": 0.1082,
    "h": 288.3
  },
  "luminance": 0.02555
}

Semantic roles & 50–950 ramp

primary
#2F2161
secondary
#849549
accent
#D94FBB
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2F2161

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

Preview Lab → · Contrast checker → · Palette generator →

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