#1F144D#1F144D

#1F144D is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.7% C 0.099 H 285.3°. Best body text is #FFFFFF at 16.60:1 contrast (WCAG AA passes).

Color values

HEX#1F144D
RGBrgb(31, 20, 77)
HSLhsl(252, 59%, 19%)
HSVhsv(252, 74%, 30%)
CMYKcmyk(59.7%, 74%, 0%, 69.8%)
CIE-LABlab(11.47, 23.12, -33.38)
CIE-LCHlch(11.47, 40.61, 304.71°)
OKLaboklab(24.67% 0.0263 -0.0959)
OKLCHoklch(24.67% 0.099 285.3)
XYZxyz(2.1544, 1.3273, 7.1624)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F144D #424D14
analogous
#14264D #1F144D #3C144D
triadic
#1F144D #4D1F14 #144D1F
tetradic
#1F144D #4D1426 #424D14 #144D3C
square
#1F144D #4D1426 #424D14 #144D3C
split-complementary
#1F144D #4D3C14 #264D14
monochromatic
#0A0618 #0B071C #1F144D #33217E #462DAE

Accessibility & contrast

On white

16.60
#1F144D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F144D
16.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F144D#FFFFFF#000000##FFFFFF
##1F144D1.0016.601.2716.60
#FFFFFF16.601.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204F
Deuteranopia (green-blind)
#001D4C
Tritanopia (blue-blind)
#0B222E
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #1f144d;
/* rgb */ color: rgb(31, 20, 77);
/* oklch */ color: oklch(24.7% 0.099 285.3);
Tailwind
colors: {
  custom: {
    50: '#60527f',
    500: '#1f144d',
    950: '#000000',
  },
}
SCSS
$custom: #1f144d;
$custom-light: #60527f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f144d",
  "rgb": {
    "r": 31,
    "g": 20,
    "b": 77
  },
  "hsl": {
    "h": 251.579,
    "s": 58.763,
    "l": 19.02
  },
  "oklch": {
    "l": 0.24671,
    "c": 0.09947,
    "h": 285.3
  },
  "luminance": 0.01327
}

Semantic roles & 50–950 ramp

primary
#1F144D
secondary
#768538
accent
#E246C4
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1F144D

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

Preview Lab → · Contrast checker → · Palette generator →

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