#1F0235#1F0235

#1F0235 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.3% C 0.094 H 305.3°. Best body text is #FFFFFF at 18.78:1 contrast (WCAG AA passes).

Color values

HEX#1F0235
RGBrgb(31, 2, 53)
HSLhsl(274, 93%, 11%)
HSVhsv(274, 96%, 21%)
CMYKcmyk(41.5%, 96.2%, 0%, 79.2%)
CIE-LABlab(5.35, 25.36, -26.28)
CIE-LCHlch(5.35, 36.52, 313.97°)
OKLaboklab(19.34% 0.0543 -0.0768)
OKLCHoklch(19.34% 0.094 305.3)
XYZxyz(1.2292, 0.5918, 3.4169)
Luminance0.0059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0235 #183502
analogous
#060235 #1F0235 #350231
triadic
#1F0235 #351F02 #02351F
tetradic
#1F0235 #350602 #183502 #023135
square
#1F0235 #350602 #183502 #023135
split-complementary
#1F0235 #313502 #023506
monochromatic
#11011D #11011D #1F0235 #410470 #6406AB

Accessibility & contrast

On white

18.78
#1F0235 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#1F0235 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0235
18.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0235#FFFFFF#000000##FFFFFF
##1F02351.0018.781.1218.78
#FFFFFF18.781.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001136
Deuteranopia (green-blind)
#001234
Tritanopia (blue-blind)
#1B0F1C
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #1f0235;
/* rgb */ color: rgb(31, 2, 53);
/* oklch */ color: oklch(19.3% 0.094 305.3);
Tailwind
colors: {
  custom: {
    50: '#5d466d',
    500: '#1f0235',
    950: '#000000',
  },
}
SCSS
$custom: #1f0235;
$custom-light: #5d466d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0235",
  "rgb": {
    "r": 31,
    "g": 2,
    "b": 53
  },
  "hsl": {
    "h": 274.118,
    "s": 92.727,
    "l": 10.784
  },
  "oklch": {
    "l": 0.1934,
    "c": 0.09406,
    "h": 305.3
  },
  "luminance": 0.00592
}

Semantic roles & 50–950 ramp

primary
#1F0235
secondary
#43791A
accent
#FF2985
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040007
muted
#79777A

Preview Lab

Preview with #1F0235

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

Preview Lab → · Contrast checker → · Palette generator →

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