#2F083B#2F083B

#2F083B is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.4% C 0.096 H 316.8°. Best body text is #FFFFFF at 17.23:1 contrast (WCAG AA passes).

Color values

HEX#2F083B
RGBrgb(47, 8, 59)
HSLhsl(286, 76%, 13%)
HSVhsv(286, 86%, 23%)
CMYKcmyk(20.3%, 86.4%, 0%, 76.9%)
CIE-LABlab(9.75, 28.15, -23.39)
CIE-LCHlch(9.75, 36.60, 320.27°)
OKLaboklab(23.45% 0.0702 -0.0659)
OKLCHoklch(23.45% 0.096 316.8)
XYZxyz(2.0484, 1.0939, 4.2401)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F083B #143B08
analogous
#15083B #2F083B #3B082D
triadic
#2F083B #3B2F08 #083B2F
tetradic
#2F083B #3B1508 #143B08 #082D3B
square
#2F083B #3B1508 #143B08 #082D3B
split-complementary
#2F083B #2D3B08 #083B15
monochromatic
#15041B #15041B #2F083B #5A0F71 #8517A7

Accessibility & contrast

On white

17.23
#2F083B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F083B
17.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F083B#FFFFFF#000000##FFFFFF
##2F083B1.0017.231.2217.23
#FFFFFF17.231.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193C
Deuteranopia (green-blind)
#081C3A
Tritanopia (blue-blind)
#2E1321
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2f083b;
/* rgb */ color: rgb(47, 8, 59);
/* oklch */ color: oklch(23.4% 0.096 316.8);
Tailwind
colors: {
  custom: {
    50: '#6a4c71',
    500: '#2f083b',
    950: '#000000',
  },
}
SCSS
$custom: #2f083b;
$custom-light: #6a4c71;
$custom-dark: #000000;
JSON
{
  "hex": "#2f083b",
  "rgb": {
    "r": 47,
    "g": 8,
    "b": 59
  },
  "hsl": {
    "h": 285.882,
    "s": 76.119,
    "l": 13.137
  },
  "oklch": {
    "l": 0.2345,
    "c": 0.09624,
    "h": 316.8
  },
  "luminance": 0.01094
}

Semantic roles & 50–950 ramp

primary
#2F083B
secondary
#397A25
accent
#F33562
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070108
muted
#7A777B

Preview Lab

Preview with #2F083B

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

Preview Lab → · Contrast checker → · Palette generator →

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