#1F144B#1F144B

#1F144B is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.5% C 0.097 H 286.0°. Best body text is #FFFFFF at 16.67:1 contrast (WCAG AA passes).

Color values

HEX#1F144B
RGBrgb(31, 20, 75)
HSLhsl(252, 58%, 19%)
HSVhsv(252, 73%, 29%)
CMYKcmyk(58.7%, 73.3%, 0%, 70.6%)
CIE-LABlab(11.27, 22.41, -32.31)
CIE-LCHlch(11.27, 39.33, 304.75°)
OKLaboklab(24.47% 0.0266 -0.0928)
OKLCHoklch(24.47% 0.097 286)
XYZxyz(2.0849, 1.2995, 6.7962)
Luminance0.0130 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F144B #404B14
analogous
#14244B #1F144B #3A144B
triadic
#1F144B #4B1F14 #144B1F
tetradic
#1F144B #4B1424 #404B14 #144B3A
square
#1F144B #4B1424 #404B14 #144B3A
split-complementary
#1F144B #4B3A14 #244B14
monochromatic
#0A0618 #0B071B #1F144B #33217B #472EAC

Accessibility & contrast

On white

16.67
#1F144B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F144B
16.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F144B#FFFFFF#000000##FFFFFF
##1F144B1.0016.671.2616.67
#FFFFFF16.671.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4D
Deuteranopia (green-blind)
#001C4A
Tritanopia (blue-blind)
#0D222D
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #1f144b;
/* rgb */ color: rgb(31, 20, 75);
/* oklch */ color: oklch(24.5% 0.097 286.0);
Tailwind
colors: {
  custom: {
    50: '#60527e',
    500: '#1f144b',
    950: '#000000',
  },
}
SCSS
$custom: #1f144b;
$custom-light: #60527e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f144b",
  "rgb": {
    "r": 31,
    "g": 20,
    "b": 75
  },
  "hsl": {
    "h": 252,
    "s": 57.895,
    "l": 18.627
  },
  "oklch": {
    "l": 0.24472,
    "c": 0.09654,
    "h": 286
  },
  "luminance": 0.013
}

Semantic roles & 50–950 ramp

primary
#1F144B
secondary
#748338
accent
#E147C2
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1F144B

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

Preview Lab → · Contrast checker → · Palette generator →

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