#1F20A1#1F20A1

#1F20A1 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.8% C 0.197 H 270.4°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#1F20A1
RGBrgb(31, 32, 161)
HSLhsl(240, 68%, 38%)
HSVhsv(240, 81%, 63%)
CMYKcmyk(80.7%, 80.1%, 0%, 36.9%)
CIE-LABlab(23.33, 45.06, -67.97)
CIE-LCHlch(23.33, 81.55, 303.54°)
OKLaboklab(35.85% 0.0015 -0.1968)
OKLCHoklch(35.85% 0.197 270.4)
XYZxyz(7.5124, 3.8967, 34.0675)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F20A1 #A1A01F
analogous
#1F61A1 #1F20A1 #5F1FA1
triadic
#1F20A1 #A11F20 #20A11F
tetradic
#1F20A1 #A11F61 #A1A01F #1FA15F
square
#1F20A1 #A11F61 #A1A01F #1FA15F
split-complementary
#1F20A1 #A15F1F #61A11F
monochromatic
#0B0C3A #15166E #1F20A1 #292AD4 #5B5CDF

Accessibility & contrast

On white

11.80
#1F20A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#1F20A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F20A1
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F20A1#FFFFFF#000000##FFFFFF
##1F20A11.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA5
Deuteranopia (green-blind)
#00319F
Tritanopia (blue-blind)
#004861
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f20a1;
/* rgb */ color: rgb(31, 32, 161);
/* oklch */ color: oklch(35.8% 0.197 270.4);
Tailwind
colors: {
  custom: {
    50: '#745ebe',
    500: '#1f20a1',
    950: '#000000',
  },
}
SCSS
$custom: #1f20a1;
$custom-light: #745ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#1f20a1",
  "rgb": {
    "r": 31,
    "g": 32,
    "b": 161
  },
  "hsl": {
    "h": 239.538,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.35846,
    "c": 0.19683,
    "h": 270.4
  },
  "luminance": 0.03898
}

Semantic roles & 50–950 ramp

primary
#1F20A1
secondary
#C4C358
accent
#E93DEB
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #1F20A1

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

Preview Lab → · Contrast checker → · Palette generator →

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