#1F144C#1F144C

#1F144C is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.6% C 0.098 H 285.7°. Best body text is #FFFFFF at 16.63:1 contrast (WCAG AA passes).

Color values

HEX#1F144C
RGBrgb(31, 20, 76)
HSLhsl(252, 58%, 19%)
HSVhsv(252, 74%, 30%)
CMYKcmyk(59.2%, 73.7%, 0%, 70.2%)
CIE-LABlab(11.37, 22.76, -32.85)
CIE-LCHlch(11.37, 39.97, 304.72°)
OKLaboklab(24.57% 0.0265 -0.0944)
OKLCHoklch(24.57% 0.098 285.7)
XYZxyz(2.1193, 1.3133, 6.9779)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F144C #414C14
analogous
#14254C #1F144C #3B144C
triadic
#1F144C #4C1F14 #144C1F
tetradic
#1F144C #4C1425 #414C14 #144C3B
square
#1F144C #4C1425 #414C14 #144C3B
split-complementary
#1F144C #4C3B14 #254C14
monochromatic
#0A0618 #0B071C #1F144C #33217C #472EAD

Accessibility & contrast

On white

16.63
#1F144C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#1F144C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F144C
16.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F144C#FFFFFF#000000##FFFFFF
##1F144C1.0016.631.2616.63
#FFFFFF16.631.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204E
Deuteranopia (green-blind)
#001D4B
Tritanopia (blue-blind)
#0C222E
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #1f144c;
/* rgb */ color: rgb(31, 20, 76);
/* oklch */ color: oklch(24.6% 0.098 285.7);
Tailwind
colors: {
  custom: {
    50: '#60527f',
    500: '#1f144c',
    950: '#000000',
  },
}
SCSS
$custom: #1f144c;
$custom-light: #60527f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f144c",
  "rgb": {
    "r": 31,
    "g": 20,
    "b": 76
  },
  "hsl": {
    "h": 251.786,
    "s": 58.333,
    "l": 18.824
  },
  "oklch": {
    "l": 0.24571,
    "c": 0.09801,
    "h": 285.7
  },
  "luminance": 0.01313
}

Semantic roles & 50–950 ramp

primary
#1F144C
secondary
#758438
accent
#E246C3
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1F144C

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

Preview Lab → · Contrast checker → · Palette generator →

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