#2F033F#2F033F

#2F033F is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 23.2% C 0.108 H 314.6°. Best body text is #FFFFFF at 17.42:1 contrast (WCAG AA passes).

Color values

HEX#2F033F
RGBrgb(47, 3, 63)
HSLhsl(284, 91%, 13%)
HSVhsv(284, 95%, 25%)
CMYKcmyk(25.4%, 95.2%, 0%, 75.3%)
CIE-LABlab(9.23, 31.61, -27.11)
CIE-LCHlch(9.23, 41.64, 319.39°)
OKLaboklab(23.19% 0.0756 -0.0767)
OKLCHoklch(23.19% 0.108 314.6)
XYZxyz(2.1019, 1.0284, 4.7894)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F033F #133F03
analogous
#11033F #2F033F #3F0331
triadic
#2F033F #3F2F03 #033F2F
tetradic
#2F033F #3F1103 #133F03 #03313F
square
#2F033F #3F1103 #133F03 #03313F
split-complementary
#2F033F #313F03 #033F11
monochromatic
#16011D #16011D #2F033F #5B0679 #8609B4

Accessibility & contrast

On white

17.42
#2F033F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#2F033F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F033F
17.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F033F#FFFFFF#000000##FFFFFF
##2F033F1.0017.421.2117.42
#FFFFFF17.421.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001841
Deuteranopia (green-blind)
#001B3E
Tritanopia (blue-blind)
#2D1222
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2f033f;
/* rgb */ color: rgb(47, 3, 63);
/* oklch */ color: oklch(23.2% 0.108 314.6);
Tailwind
colors: {
  custom: {
    50: '#6b4a74',
    500: '#2f033f',
    950: '#000000',
  },
}
SCSS
$custom: #2f033f;
$custom-light: #6b4a74;
$custom-dark: #000000;
JSON
{
  "hex": "#2f033f",
  "rgb": {
    "r": 47,
    "g": 3,
    "b": 63
  },
  "hsl": {
    "h": 284,
    "s": 90.909,
    "l": 12.941
  },
  "oklch": {
    "l": 0.23191,
    "c": 0.1077,
    "h": 314.6
  },
  "luminance": 0.01028
}

Semantic roles & 50–950 ramp

primary
#2F033F
secondary
#37811D
accent
#FF2962
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #2F033F

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

Preview Lab → · Contrast checker → · Palette generator →

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