#1F149F#1F149F

#1F149F is a dark, highly saturated blue. Relative luminance 0.033; OKLCH L 34.3% C 0.203 H 271.3°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#1F149F
RGBrgb(31, 20, 159)
HSLhsl(245, 78%, 35%)
HSVhsv(245, 87%, 62%)
CMYKcmyk(80.5%, 87.4%, 0%, 37.6%)
CIE-LABlab(21.18, 50.01, -70.31)
CIE-LCHlch(21.18, 86.28, 305.42°)
OKLaboklab(34.29% 0.0046 -0.2033)
OKLCHoklch(34.29% 0.203 271.3)
XYZxyz(7.0711, 3.2940, 33.0573)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F149F #949F14
analogous
#144F9F #1F149F #64149F
triadic
#1F149F #9F1F14 #149F1F
tetradic
#1F149F #9F144F #949F14 #149F64
square
#1F149F #9F144F #949F14 #149F64
split-complementary
#1F149F #9F6414 #4F9F14
monochromatic
#0A0632 #140D69 #1F149F #2A1BD5 #5346E8

Accessibility & contrast

On white

12.66
#1F149F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#1F149F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F149F
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F149F#FFFFFF#000000##FFFFFF
##1F149F1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0039A3
Deuteranopia (green-blind)
#002C9D
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f149f;
/* rgb */ color: rgb(31, 20, 159);
/* oklch */ color: oklch(34.3% 0.203 271.3);
Tailwind
colors: {
  custom: {
    50: '#7558bd',
    500: '#1f149f',
    950: '#000000',
  },
}
SCSS
$custom: #1f149f;
$custom-light: #7558bd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f149f",
  "rgb": {
    "r": 31,
    "g": 20,
    "b": 159
  },
  "hsl": {
    "h": 244.748,
    "s": 77.654,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34293,
    "c": 0.2034,
    "h": 271.3
  },
  "luminance": 0.03295
}

Semantic roles & 50–950 ramp

primary
#1F149F
secondary
#BEC846
accent
#F434E5
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #1F149F

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

Preview Lab → · Contrast checker → · Palette generator →

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