#1F20AA#1F20AA

#1F20AA is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 36.9% C 0.207 H 269.9°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#1F20AA
RGBrgb(31, 32, 170)
HSLhsl(240, 69%, 39%)
HSVhsv(240, 82%, 67%)
CMYKcmyk(81.8%, 81.2%, 0%, 33.3%)
CIE-LABlab(24.40, 47.98, -71.64)
CIE-LCHlch(24.40, 86.23, 303.81°)
OKLaboklab(36.91% -0.0003 -0.2074)
OKLCHoklch(36.91% 0.207 269.9)
XYZxyz(8.3348, 4.2256, 38.3988)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F20AA #AAA91F
analogous
#1F66AA #1F20AA #631FAA
triadic
#1F20AA #AA1F20 #20AA1F
tetradic
#1F20AA #AA1F66 #AAA91F #1FAA63
square
#1F20AA #AA1F66 #AAA91F #1FAA63
split-complementary
#1F20AA #AA631F #66AA1F
monochromatic
#0C0D42 #161676 #1F20AA #2D2FD9 #6162E2

Accessibility & contrast

On white

11.38
#1F20AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#1F20AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F20AA
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F20AA#FFFFFF#000000##FFFFFF
##1F20AA1.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AE
Deuteranopia (green-blind)
#0033A8
Tritanopia (blue-blind)
#004C66
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f20aa;
/* rgb */ color: rgb(31, 32, 170);
/* oklch */ color: oklch(36.9% 0.207 269.9);
Tailwind
colors: {
  custom: {
    50: '#775fc5',
    500: '#1f20aa',
    950: '#000000',
  },
}
SCSS
$custom: #1f20aa;
$custom-light: #775fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f20aa",
  "rgb": {
    "r": 31,
    "g": 32,
    "b": 170
  },
  "hsl": {
    "h": 239.568,
    "s": 69.154,
    "l": 39.412
  },
  "oklch": {
    "l": 0.36909,
    "c": 0.20744,
    "h": 269.9
  },
  "luminance": 0.04227
}

Semantic roles & 50–950 ramp

primary
#1F20AA
secondary
#C7C65E
accent
#EB3CEC
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #1F20AA

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

Preview Lab → · Contrast checker → · Palette generator →

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