#2F183D#2F183D

#2F183D is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.0% C 0.072 H 311.1°. Best body text is #FFFFFF at 15.92:1 contrast (WCAG AA passes).

Color values

HEX#2F183D
RGBrgb(47, 24, 61)
HSLhsl(277, 44%, 17%)
HSVhsv(277, 61%, 24%)
CMYKcmyk(23%, 60.7%, 0%, 76.1%)
CIE-LABlab(13.20, 19.63, -19.31)
CIE-LCHlch(13.20, 27.53, 315.47°)
OKLaboklab(25.99% 0.0471 -0.054)
OKLCHoklch(25.99% 0.072 311.1)
XYZxyz(2.3411, 1.5946, 4.5984)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F183D #263D18
analogous
#1D183D #2F183D #3D1839
triadic
#2F183D #3D2F18 #183D2F
tetradic
#2F183D #3D1D18 #263D18 #18393D
square
#2F183D #3D1D18 #263D18 #18393D
split-complementary
#2F183D #393D18 #183D1D
monochromatic
#110916 #110916 #2F183D #512969 #733B95

Accessibility & contrast

On white

15.92
#2F183D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F183D
15.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F183D#FFFFFF#000000##FFFFFF
##2F183D1.0015.921.3215.92
#FFFFFF15.921.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E213E
Deuteranopia (green-blind)
#15223C
Tritanopia (blue-blind)
#2D1E27
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2f183d;
/* rgb */ color: rgb(47, 24, 61);
/* oklch */ color: oklch(26.0% 0.072 311.1);
Tailwind
colors: {
  custom: {
    50: '#695672',
    500: '#2f183d',
    950: '#000000',
  },
}
SCSS
$custom: #2f183d;
$custom-light: #695672;
$custom-dark: #000000;
JSON
{
  "hex": "#2f183d",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 61
  },
  "hsl": {
    "h": 277.297,
    "s": 43.529,
    "l": 16.667
  },
  "oklch": {
    "l": 0.25992,
    "c": 0.07167,
    "h": 311.1
  },
  "luminance": 0.01595
}

Semantic roles & 50–950 ramp

primary
#2F183D
secondary
#52733D
accent
#D35584
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#060308
muted
#7A787B

Preview Lab

Preview with #2F183D

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

Preview Lab → · Contrast checker → · Palette generator →

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