#2F183E#2F183E

#2F183E is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.1% C 0.073 H 310.2°. Best body text is #FFFFFF at 15.90:1 contrast (WCAG AA passes).

Color values

HEX#2F183E
RGBrgb(47, 24, 62)
HSLhsl(276, 44%, 17%)
HSVhsv(276, 61%, 24%)
CMYKcmyk(24.2%, 61.3%, 0%, 75.7%)
CIE-LABlab(13.26, 19.91, -19.91)
CIE-LCHlch(13.26, 28.15, 314.99°)
OKLaboklab(26.06% 0.0472 -0.0558)
OKLCHoklch(26.06% 0.073 310.2)
XYZxyz(2.3683, 1.6054, 4.7416)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F183E #273E18
analogous
#1C183E #2F183E #3E183A
triadic
#2F183E #3E2F18 #183E2F
tetradic
#2F183E #3E1C18 #273E18 #183A3E
square
#2F183E #3E1C18 #273E18 #183A3E
split-complementary
#2F183E #3A3E18 #183E1C
monochromatic
#110916 #110916 #2F183E #50296A #723A96

Accessibility & contrast

On white

15.90
#2F183E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2F183E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F183E
15.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F183E#FFFFFF#000000##FFFFFF
##2F183E1.0015.901.3215.90
#FFFFFF15.901.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D213F
Deuteranopia (green-blind)
#15223D
Tritanopia (blue-blind)
#2D1F28
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2f183e;
/* rgb */ color: rgb(47, 24, 62);
/* oklch */ color: oklch(26.1% 0.073 310.2);
Tailwind
colors: {
  custom: {
    50: '#695673',
    500: '#2f183e',
    950: '#000000',
  },
}
SCSS
$custom: #2f183e;
$custom-light: #695673;
$custom-dark: #000000;
JSON
{
  "hex": "#2f183e",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 62
  },
  "hsl": {
    "h": 276.316,
    "s": 44.186,
    "l": 16.863
  },
  "oklch": {
    "l": 0.26062,
    "c": 0.07306,
    "h": 310.2
  },
  "luminance": 0.01605
}

Semantic roles & 50–950 ramp

primary
#2F183E
secondary
#53743D
accent
#D45486
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060308
muted
#7A787B

Preview Lab

Preview with #2F183E

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

Preview Lab → · Contrast checker → · Palette generator →

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