#2F083C#2F083C

#2F083C is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.5% C 0.097 H 316.0°. Best body text is #FFFFFF at 17.20:1 contrast (WCAG AA passes).

Color values

HEX#2F083C
RGBrgb(47, 8, 60)
HSLhsl(285, 76%, 13%)
HSVhsv(285, 87%, 24%)
CMYKcmyk(21.7%, 86.7%, 0%, 76.5%)
CIE-LABlab(9.83, 28.39, -23.98)
CIE-LCHlch(9.83, 37.16, 319.81°)
OKLaboklab(23.53% 0.07 -0.0676)
OKLCHoklch(23.53% 0.097 316)
XYZxyz(2.0746, 1.1043, 4.3780)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F083C #153C08
analogous
#15083C #2F083C #3C082F
triadic
#2F083C #3C2F08 #083C2F
tetradic
#2F083C #3C1508 #153C08 #082F3C
square
#2F083C #3C1508 #153C08 #082F3C
split-complementary
#2F083C #2F3C08 #083C15
monochromatic
#15041B #15041B #2F083C #590F72 #8416A8

Accessibility & contrast

On white

17.20
#2F083C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#2F083C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F083C
17.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F083C#FFFFFF#000000##FFFFFF
##2F083C1.0017.201.2217.20
#FFFFFF17.201.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193D
Deuteranopia (green-blind)
#071C3B
Tritanopia (blue-blind)
#2E1321
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2f083c;
/* rgb */ color: rgb(47, 8, 60);
/* oklch */ color: oklch(23.5% 0.097 316.0);
Tailwind
colors: {
  custom: {
    50: '#6a4c72',
    500: '#2f083c',
    950: '#000000',
  },
}
SCSS
$custom: #2f083c;
$custom-light: #6a4c72;
$custom-dark: #000000;
JSON
{
  "hex": "#2f083c",
  "rgb": {
    "r": 47,
    "g": 8,
    "b": 60
  },
  "hsl": {
    "h": 285,
    "s": 76.471,
    "l": 13.333
  },
  "oklch": {
    "l": 0.23534,
    "c": 0.09731,
    "h": 316
  },
  "luminance": 0.01104
}

Semantic roles & 50–950 ramp

primary
#2F083C
secondary
#3B7B25
accent
#F33564
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070108
muted
#7A777B

Preview Lab

Preview with #2F083C

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

Preview Lab → · Contrast checker → · Palette generator →

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