#1F20D5#1F20D5

#1F20D5 is a dark, highly saturated blue. Relative luminance 0.061; OKLCH L 42.1% C 0.255 H 268.0°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#1F20D5
RGBrgb(31, 32, 213)
HSLhsl(240, 75%, 48%)
HSVhsv(240, 85%, 84%)
CMYKcmyk(85.4%, 85%, 0%, 16.5%)
CIE-LABlab(29.73, 61.08, -88.19)
CIE-LCHlch(29.73, 107.28, 304.71°)
OKLaboklab(42.11% -0.0088 -0.2553)
OKLCHoklch(42.11% 0.255 268)
XYZxyz(13.0877, 6.1268, 63.4307)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F20D5 #D5D41F
analogous
#1F7BD5 #1F20D5 #791FD5
triadic
#1F20D5 #D51F20 #20D51F
tetradic
#1F20D5 #D51F7B #D5D41F #1FD579
square
#1F20D5 #D51F7B #D5D41F #1FD579
split-complementary
#1F20D5 #D5791F #7BD51F
monochromatic
#0F106A #1718A0 #1F20D5 #4C4DE5 #8282ED

Accessibility & contrast

On white

9.44
#1F20D5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#1F20D5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F20D5
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F20D5#FFFFFF#000000##FFFFFF
##1F20D51.009.442.239.44
#FFFFFF9.441.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FDA
Deuteranopia (green-blind)
#003CD2
Tritanopia (blue-blind)
#005D7F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f20d5;
/* rgb */ color: rgb(31, 32, 213);
/* oklch */ color: oklch(42.1% 0.255 268.0);
Tailwind
colors: {
  custom: {
    50: '#8262e4',
    500: '#1f20d5',
    950: '#000000',
  },
}
SCSS
$custom: #1f20d5;
$custom-light: #8262e4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f20d5",
  "rgb": {
    "r": 31,
    "g": 32,
    "b": 213
  },
  "hsl": {
    "h": 239.67,
    "s": 74.59,
    "l": 47.843
  },
  "oklch": {
    "l": 0.42106,
    "c": 0.25542,
    "h": 268
  },
  "luminance": 0.06128
}

Semantic roles & 50–950 ramp

primary
#1F20D5
secondary
#D5D57A
accent
#F037F1
background
#F9F6FE
surface
#F1EBFC
border
#CBC6D5
text
#0D0616
muted
#7E7A84

Preview Lab

Preview with #1F20D5

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

Preview Lab → · Contrast checker → · Palette generator →

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