#1F169F#1F169F

#1F169F is a dark, highly saturated blue. Relative luminance 0.034; OKLCH L 34.5% C 0.202 H 271.2°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#1F169F
RGBrgb(31, 22, 159)
HSLhsl(244, 76%, 35%)
HSVhsv(244, 86%, 62%)
CMYKcmyk(80.5%, 86.2%, 0%, 37.6%)
CIE-LABlab(21.46, 49.19, -69.85)
CIE-LCHlch(21.46, 85.44, 305.15°)
OKLaboklab(34.48% 0.0043 -0.2021)
OKLCHoklch(34.48% 0.202 271.2)
XYZxyz(7.1079, 3.3675, 33.0696)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F169F #969F16
analogous
#16519F #1F169F #64169F
triadic
#1F169F #9F1F16 #169F1F
tetradic
#1F169F #9F1651 #969F16 #169F64
square
#1F169F #9F1651 #969F16 #169F64
split-complementary
#1F169F #9F6416 #519F16
monochromatic
#0A0733 #150F69 #1F169F #291DD5 #544AE6

Accessibility & contrast

On white

12.55
#1F169F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1F169F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F169F
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F169F#FFFFFF#000000##FFFFFF
##1F169F1.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003AA3
Deuteranopia (green-blind)
#002C9D
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f169f;
/* rgb */ color: rgb(31, 22, 159);
/* oklch */ color: oklch(34.5% 0.202 271.2);
Tailwind
colors: {
  custom: {
    50: '#7559bd',
    500: '#1f169f',
    950: '#000000',
  },
}
SCSS
$custom: #1f169f;
$custom-light: #7559bd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f169f",
  "rgb": {
    "r": 31,
    "g": 22,
    "b": 159
  },
  "hsl": {
    "h": 243.942,
    "s": 75.691,
    "l": 35.49
  },
  "oklch": {
    "l": 0.34481,
    "c": 0.20211,
    "h": 271.2
  },
  "luminance": 0.03368
}

Semantic roles & 50–950 ramp

primary
#1F169F
secondary
#BFC74A
accent
#F236E6
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #1F169F

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

Preview Lab → · Contrast checker → · Palette generator →

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