#1F17A0#1F17A0

#1F17A0 is a dark, highly saturated blue. Relative luminance 0.034; OKLCH L 34.7% C 0.203 H 271.1°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#1F17A0
RGBrgb(31, 23, 160)
HSLhsl(244, 75%, 36%)
HSVhsv(244, 86%, 63%)
CMYKcmyk(80.6%, 85.6%, 0%, 37.3%)
CIE-LABlab(21.73, 49.07, -70.01)
CIE-LCHlch(21.73, 85.49, 305.03°)
OKLaboklab(34.7% 0.0038 -0.2025)
OKLCHoklch(34.7% 0.203 271.1)
XYZxyz(7.2145, 3.4413, 33.5349)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F17A0 #98A017
analogous
#1753A0 #1F17A0 #6317A0
triadic
#1F17A0 #A01F17 #17A01F
tetradic
#1F17A0 #A01753 #98A017 #17A063
square
#1F17A0 #A01753 #98A017 #17A063
split-complementary
#1F17A0 #A06317 #53A017
monochromatic
#0A0835 #150F6A #1F17A0 #291FD6 #554CE5

Accessibility & contrast

On white

12.44
#1F17A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1F17A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F17A0
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F17A0#FFFFFF#000000##FFFFFF
##1F17A01.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA4
Deuteranopia (green-blind)
#002D9E
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f17a0;
/* rgb */ color: rgb(31, 23, 160);
/* oklch */ color: oklch(34.7% 0.203 271.1);
Tailwind
colors: {
  custom: {
    50: '#755abe',
    500: '#1f17a0',
    950: '#000000',
  },
}
SCSS
$custom: #1f17a0;
$custom-light: #755abe;
$custom-dark: #000000;
JSON
{
  "hex": "#1f17a0",
  "rgb": {
    "r": 31,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 243.504,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.34704,
    "c": 0.20259,
    "h": 271.1
  },
  "luminance": 0.03442
}

Semantic roles & 50–950 ramp

primary
#1F17A0
secondary
#C0C74C
accent
#F136E7
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #1F17A0

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

Preview Lab → · Contrast checker → · Palette generator →

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