#1F154D#1F154D

#1F154D is a very dark, moderate violet. Relative luminance 0.014; OKLCH L 24.8% C 0.098 H 284.9°. Best body text is #FFFFFF at 16.50:1 contrast (WCAG AA passes).

Color values

HEX#1F154D
RGBrgb(31, 21, 77)
HSLhsl(251, 57%, 19%)
HSVhsv(251, 73%, 30%)
CMYKcmyk(59.7%, 72.7%, 0%, 69.8%)
CIE-LABlab(11.71, 22.45, -32.98)
CIE-LCHlch(11.71, 39.90, 304.25°)
OKLaboklab(24.85% 0.0252 -0.0947)
OKLCHoklch(24.85% 0.098 284.9)
XYZxyz(2.1724, 1.3633, 7.1684)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F154D #434D15
analogous
#15274D #1F154D #3B154D
triadic
#1F154D #4D1F15 #154D1F
tetradic
#1F154D #4D1527 #434D15 #154D3B
square
#1F154D #4D1527 #434D15 #154D3B
split-complementary
#1F154D #4D3B15 #274D15
monochromatic
#0A0718 #0C081D #1F154D #32227D #462FAD

Accessibility & contrast

On white

16.50
#1F154D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#1F154D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F154D
16.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F154D#FFFFFF#000000##FFFFFF
##1F154D1.0016.501.2716.50
#FFFFFF16.501.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214F
Deuteranopia (green-blind)
#001D4C
Tritanopia (blue-blind)
#0B232E
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #1f154d;
/* rgb */ color: rgb(31, 21, 77);
/* oklch */ color: oklch(24.8% 0.098 284.9);
Tailwind
colors: {
  custom: {
    50: '#60537f',
    500: '#1f154d',
    950: '#000000',
  },
}
SCSS
$custom: #1f154d;
$custom-light: #60537f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f154d",
  "rgb": {
    "r": 31,
    "g": 21,
    "b": 77
  },
  "hsl": {
    "h": 250.714,
    "s": 57.143,
    "l": 19.216
  },
  "oklch": {
    "l": 0.24849,
    "c": 0.09804,
    "h": 284.9
  },
  "luminance": 0.01363
}

Semantic roles & 50–950 ramp

primary
#1F154D
secondary
#778539
accent
#E047C5
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1F154D

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

Preview Lab → · Contrast checker → · Palette generator →

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