#1F20A8#1F20A8

#1F20A8 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 36.7% C 0.205 H 270.0°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#1F20A8
RGBrgb(31, 32, 168)
HSLhsl(240, 69%, 39%)
HSVhsv(240, 82%, 66%)
CMYKcmyk(81.5%, 81%, 0%, 34.1%)
CIE-LABlab(24.16, 47.34, -70.83)
CIE-LCHlch(24.16, 85.20, 303.76°)
OKLaboklab(36.67% 0.0001 -0.2051)
OKLCHoklch(36.67% 0.205 270)
XYZxyz(8.1471, 4.1505, 37.4099)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F20A8 #A8A71F
analogous
#1F65A8 #1F20A8 #631FA8
triadic
#1F20A8 #A81F20 #20A81F
tetradic
#1F20A8 #A81F65 #A8A71F #1FA863
square
#1F20A8 #A81F65 #A8A71F #1FA863
split-complementary
#1F20A8 #A8631F #65A81F
monochromatic
#0C0C41 #151674 #1F20A8 #2C2DD8 #6061E2

Accessibility & contrast

On white

11.47
#1F20A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F20A8
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F20A8#FFFFFF#000000##FFFFFF
##1F20A81.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AC
Deuteranopia (green-blind)
#0032A6
Tritanopia (blue-blind)
#004B65
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f20a8;
/* rgb */ color: rgb(31, 32, 168);
/* oklch */ color: oklch(36.7% 0.205 270.0);
Tailwind
colors: {
  custom: {
    50: '#765fc3',
    500: '#1f20a8',
    950: '#000000',
  },
}
SCSS
$custom: #1f20a8;
$custom-light: #765fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f20a8",
  "rgb": {
    "r": 31,
    "g": 32,
    "b": 168
  },
  "hsl": {
    "h": 239.562,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.36672,
    "c": 0.20511,
    "h": 270
  },
  "luminance": 0.04151
}

Semantic roles & 50–950 ramp

primary
#1F20A8
secondary
#C6C55D
accent
#EA3CEC
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0A0513
muted
#7C7982

Preview Lab

Preview with #1F20A8

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

Preview Lab → · Contrast checker → · Palette generator →

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