#1F144A#1F144A

#1F144A is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.4% C 0.095 H 286.4°. Best body text is #FFFFFF at 16.70:1 contrast (WCAG AA passes).

Color values

HEX#1F144A
RGBrgb(31, 20, 74)
HSLhsl(252, 57%, 18%)
HSVhsv(252, 73%, 29%)
CMYKcmyk(58.1%, 73%, 0%, 71%)
CIE-LABlab(11.18, 22.06, -31.78)
CIE-LCHlch(11.18, 38.68, 304.77°)
OKLaboklab(24.37% 0.0268 -0.0912)
OKLCHoklch(24.37% 0.095 286.4)
XYZxyz(2.0509, 1.2859, 6.6174)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F144A #3F4A14
analogous
#14244A #1F144A #3A144A
triadic
#1F144A #4A1F14 #144A1F
tetradic
#1F144A #4A1424 #3F4A14 #144A3A
square
#1F144A #4A1424 #3F4A14 #144A3A
split-complementary
#1F144A #4A3A14 #244A14
monochromatic
#0A0718 #0B071A #1F144A #33217A #472EAA

Accessibility & contrast

On white

16.70
#1F144A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F144A
16.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F144A#FFFFFF#000000##FFFFFF
##1F144A1.0016.701.2616.70
#FFFFFF16.701.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4C
Deuteranopia (green-blind)
#001C49
Tritanopia (blue-blind)
#0E212D
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #1f144a;
/* rgb */ color: rgb(31, 20, 74);
/* oklch */ color: oklch(24.4% 0.095 286.4);
Tailwind
colors: {
  custom: {
    50: '#60527d',
    500: '#1f144a',
    950: '#000000',
  },
}
SCSS
$custom: #1f144a;
$custom-light: #60527d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f144a",
  "rgb": {
    "r": 31,
    "g": 20,
    "b": 74
  },
  "hsl": {
    "h": 252.222,
    "s": 57.447,
    "l": 18.431
  },
  "oklch": {
    "l": 0.24373,
    "c": 0.09506,
    "h": 286.4
  },
  "luminance": 0.01286
}

Semantic roles & 50–950 ramp

primary
#1F144A
secondary
#738238
accent
#E147C1
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1F144A

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

Preview Lab → · Contrast checker → · Palette generator →

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