#1F0230#1F0230

#1F0230 is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.8% C 0.089 H 309.5°. Best body text is #FFFFFF at 18.93:1 contrast (WCAG AA passes).

Color values

HEX#1F0230
RGBrgb(31, 2, 48)
HSLhsl(278, 92%, 10%)
HSVhsv(278, 96%, 19%)
CMYKcmyk(35.4%, 95.8%, 0%, 81.2%)
CIE-LABlab(4.95, 23.48, -23.21)
CIE-LCHlch(4.95, 33.01, 315.33°)
OKLaboklab(18.81% 0.0564 -0.0684)
OKLCHoklch(18.81% 0.089 309.5)
XYZxyz(1.1202, 0.5481, 2.8425)
Luminance0.0055 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0230 #133002
analogous
#080230 #1F0230 #30022A
triadic
#1F0230 #301F02 #02301F
tetradic
#1F0230 #300802 #133002 #022A30
square
#1F0230 #300802 #133002 #022A30
split-complementary
#1F0230 #2A3002 #023008
monochromatic
#13011D #13011D #1F0230 #45046B #6B07A6

Accessibility & contrast

On white

18.93
#1F0230 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#1F0230 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0230
18.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0230#FFFFFF#000000##FFFFFF
##1F02301.0018.931.1118.93
#FFFFFF18.931.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001031
Deuteranopia (green-blind)
#00112F
Tritanopia (blue-blind)
#1C0D19
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #1f0230;
/* rgb */ color: rgb(31, 2, 48);
/* oklch */ color: oklch(18.8% 0.089 309.5);
Tailwind
colors: {
  custom: {
    50: '#5c4769',
    500: '#1f0230',
    950: '#000000',
  },
}
SCSS
$custom: #1f0230;
$custom-light: #5c4769;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0230",
  "rgb": {
    "r": 31,
    "g": 2,
    "b": 48
  },
  "hsl": {
    "h": 277.826,
    "s": 92,
    "l": 9.804
  },
  "oklch": {
    "l": 0.18812,
    "c": 0.08866,
    "h": 309.5
  },
  "luminance": 0.00548
}

Semantic roles & 50–950 ramp

primary
#1F0230
secondary
#3B7519
accent
#FF2978
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1F0230

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

Preview Lab → · Contrast checker → · Palette generator →

#1F0230 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva