#1F17B3#1F17B3

#1F17B3 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 37.1% C 0.224 H 269.8°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#1F17B3
RGBrgb(31, 23, 179)
HSLhsl(243, 77%, 40%)
HSVhsv(243, 87%, 70%)
CMYKcmyk(82.7%, 87.2%, 0%, 29.8%)
CIE-LABlab(24.19, 54.73, -77.41)
CIE-LCHlch(24.19, 94.80, 305.26°)
OKLaboklab(37.08% -0.0008 -0.2239)
OKLCHoklch(37.08% 0.224 269.8)
XYZxyz(9.0054, 4.1577, 42.9670)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F17B3 #ABB317
analogous
#175DB3 #1F17B3 #6D17B3
triadic
#1F17B3 #B31F17 #17B31F
tetradic
#1F17B3 #B3175D #ABB317 #17B36D
square
#1F17B3 #B3175D #ABB317 #17B36D
split-complementary
#1F17B3 #B36D17 #5DB317
monochromatic
#0C0947 #16107D #1F17B3 #2E24E3 #625BEA

Accessibility & contrast

On white

11.46
#1F17B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#1F17B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F17B3
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F17B3#FFFFFF#000000##FFFFFF
##1F17B31.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041B7
Deuteranopia (green-blind)
#0031B1
Tritanopia (blue-blind)
#004D6A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f17b3;
/* rgb */ color: rgb(31, 23, 179);
/* oklch */ color: oklch(37.1% 0.224 269.8);
Tailwind
colors: {
  custom: {
    50: '#7a5bcb',
    500: '#1f17b3',
    950: '#000000',
  },
}
SCSS
$custom: #1f17b3;
$custom-light: #7a5bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f17b3",
  "rgb": {
    "r": 31,
    "g": 23,
    "b": 179
  },
  "hsl": {
    "h": 243.077,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.3708,
    "c": 0.22394,
    "h": 269.8
  },
  "luminance": 0.04159
}

Semantic roles & 50–950 ramp

primary
#1F17B3
secondary
#C7CD58
accent
#F434EA
background
#F8F5FC
surface
#EFE9F9
border
#CAC5D2
text
#0B0414
muted
#7C7982

Preview Lab

Preview with #1F17B3

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

Preview Lab → · Contrast checker → · Palette generator →

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