#2F043B#2F043B

#2F043B is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 23.0% C 0.102 H 317.5°. Best body text is #FFFFFF at 17.48:1 contrast (WCAG AA passes).

Color values

HEX#2F043B
RGBrgb(47, 4, 59)
HSLhsl(287, 87%, 12%)
HSVhsv(287, 93%, 23%)
CMYKcmyk(20.3%, 93.2%, 0%, 76.9%)
CIE-LABlab(9.05, 30.18, -24.52)
CIE-LCHlch(9.05, 38.89, 320.90°)
OKLaboklab(22.96% 0.0754 -0.0691)
OKLCHoklch(22.96% 0.102 317.5)
XYZxyz(2.0050, 1.0070, 4.2256)
Luminance0.0101 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F043B #103B04
analogous
#13043B #2F043B #3B042C
triadic
#2F043B #3B2F04 #043B2F
tetradic
#2F043B #3B1304 #103B04 #042C3B
square
#2F043B #3B1304 #103B04 #042C3B
split-complementary
#2F043B #2C3B04 #043B13
monochromatic
#17021D #17021D #2F043B #5D0874 #8A0CAE

Accessibility & contrast

On white

17.48
#2F043B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#2F043B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F043B
17.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F043B#FFFFFF#000000##FFFFFF
##2F043B1.0017.481.2017.48
#FFFFFF17.481.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00173C
Deuteranopia (green-blind)
#051B3A
Tritanopia (blue-blind)
#2E1020
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2f043b;
/* rgb */ color: rgb(47, 4, 59);
/* oklch */ color: oklch(23.0% 0.102 317.5);
Tailwind
colors: {
  custom: {
    50: '#6a4a71',
    500: '#2f043b',
    950: '#000000',
  },
}
SCSS
$custom: #2f043b;
$custom-light: #6a4a71;
$custom-dark: #000000;
JSON
{
  "hex": "#2f043b",
  "rgb": {
    "r": 47,
    "g": 4,
    "b": 59
  },
  "hsl": {
    "h": 286.909,
    "s": 87.302,
    "l": 12.353
  },
  "oklch": {
    "l": 0.22957,
    "c": 0.10227,
    "h": 317.5
  },
  "luminance": 0.01007
}

Semantic roles & 50–950 ramp

primary
#2F043B
secondary
#337D1E
accent
#FD2A58
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070108
muted
#7A777B

Preview Lab

Preview with #2F043B

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

Preview Lab → · Contrast checker → · Palette generator →

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