#2F063B#2F063B

#2F063B is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.2% C 0.099 H 317.1°. Best body text is #FFFFFF at 17.36:1 contrast (WCAG AA passes).

Color values

HEX#2F063B
RGBrgb(47, 6, 59)
HSLhsl(286, 82%, 13%)
HSVhsv(286, 90%, 23%)
CMYKcmyk(20.3%, 89.8%, 0%, 76.9%)
CIE-LABlab(9.40, 29.15, -23.95)
CIE-LCHlch(9.40, 37.73, 320.59°)
OKLaboklab(23.21% 0.0727 -0.0675)
OKLCHoklch(23.21% 0.099 317.1)
XYZxyz(2.0267, 1.0504, 4.2328)
Luminance0.0105 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F063B #123B06
analogous
#14063B #2F063B #3B062C
triadic
#2F063B #3B2F06 #063B2F
tetradic
#2F063B #3B1406 #123B06 #062C3B
square
#2F063B #3B1406 #123B06 #062C3B
split-complementary
#2F063B #2C3B06 #063B14
monochromatic
#16031C #16031C #2F063B #5B0C73 #8811AA

Accessibility & contrast

On white

17.36
#2F063B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F063B
17.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F063B#FFFFFF#000000##FFFFFF
##2F063B1.0017.361.2117.36
#FFFFFF17.361.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183C
Deuteranopia (green-blind)
#071B3A
Tritanopia (blue-blind)
#2E1220
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2f063b;
/* rgb */ color: rgb(47, 6, 59);
/* oklch */ color: oklch(23.2% 0.099 317.1);
Tailwind
colors: {
  custom: {
    50: '#6a4b71',
    500: '#2f063b',
    950: '#000000',
  },
}
SCSS
$custom: #2f063b;
$custom-light: #6a4b71;
$custom-dark: #000000;
JSON
{
  "hex": "#2f063b",
  "rgb": {
    "r": 47,
    "g": 6,
    "b": 59
  },
  "hsl": {
    "h": 286.415,
    "s": 81.538,
    "l": 12.745
  },
  "oklch": {
    "l": 0.23206,
    "c": 0.09921,
    "h": 317.1
  },
  "luminance": 0.0105
}

Semantic roles & 50–950 ramp

primary
#2F063B
secondary
#367B22
accent
#F8305D
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070108
muted
#7A777B

Preview Lab

Preview with #2F063B

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

Preview Lab → · Contrast checker → · Palette generator →

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