#1F154E#1F154E

#1F154E is a very dark, moderate violet. Relative luminance 0.014; OKLCH L 24.9% C 0.100 H 284.6°. Best body text is #FFFFFF at 16.46:1 contrast (WCAG AA passes).

Color values

HEX#1F154E
RGBrgb(31, 21, 78)
HSLhsl(251, 58%, 19%)
HSVhsv(251, 73%, 31%)
CMYKcmyk(60.3%, 73.1%, 0%, 69.4%)
CIE-LABlab(11.81, 22.81, -33.51)
CIE-LCHlch(11.81, 40.54, 304.24°)
OKLaboklab(24.95% 0.0251 -0.0963)
OKLCHoklch(24.95% 0.1 284.6)
XYZxyz(2.2080, 1.3776, 7.3558)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F154E #444E15
analogous
#15284E #1F154E #3C154E
triadic
#1F154E #4E1F15 #154E1F
tetradic
#1F154E #4E1528 #444E15 #154E3C
square
#1F154E #4E1528 #444E15 #154E3C
split-complementary
#1F154E #4E3C15 #284E15
monochromatic
#0A0618 #0C081E #1F154E #32227E #452FAE

Accessibility & contrast

On white

16.46
#1F154E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#1F154E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F154E
16.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F154E#FFFFFF#000000##FFFFFF
##1F154E1.0016.461.2816.46
#FFFFFF16.461.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002150
Deuteranopia (green-blind)
#001D4D
Tritanopia (blue-blind)
#0A232F
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #1f154e;
/* rgb */ color: rgb(31, 21, 78);
/* oklch */ color: oklch(24.9% 0.100 284.6);
Tailwind
colors: {
  custom: {
    50: '#615380',
    500: '#1f154e',
    950: '#000000',
  },
}
SCSS
$custom: #1f154e;
$custom-light: #615380;
$custom-dark: #000000;
JSON
{
  "hex": "#1f154e",
  "rgb": {
    "r": 31,
    "g": 21,
    "b": 78
  },
  "hsl": {
    "h": 250.526,
    "s": 57.576,
    "l": 19.412
  },
  "oklch": {
    "l": 0.24948,
    "c": 0.09952,
    "h": 284.6
  },
  "luminance": 0.01378
}

Semantic roles & 50–950 ramp

primary
#1F154E
secondary
#788639
accent
#E147C6
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1F154E

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

Preview Lab → · Contrast checker → · Palette generator →

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