#1F20B1#1F20B1

#1F20B1 is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 37.7% C 0.216 H 269.5°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#1F20B1
RGBrgb(31, 32, 177)
HSLhsl(240, 70%, 41%)
HSVhsv(240, 82%, 69%)
CMYKcmyk(82.5%, 81.9%, 0%, 30.6%)
CIE-LABlab(25.25, 50.21, -74.44)
CIE-LCHlch(25.25, 89.79, 304.00°)
OKLaboklab(37.74% -0.0017 -0.2155)
OKLCHoklch(37.74% 0.216 269.5)
XYZxyz(9.0147, 4.4976, 41.9795)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F20B1 #B1B01F
analogous
#1F69B1 #1F20B1 #671FB1
triadic
#1F20B1 #B11F20 #20B11F
tetradic
#1F20B1 #B11F69 #B1B01F #1FB167
square
#1F20B1 #B11F69 #B1B01F #1FB167
split-complementary
#1F20B1 #B1671F #69B11F
monochromatic
#0D0D49 #16177D #1F20B1 #3233DB #6667E4

Accessibility & contrast

On white

11.05
#1F20B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#1F20B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F20B1
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F20B1#FFFFFF#000000##FFFFFF
##1F20B11.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B5
Deuteranopia (green-blind)
#0034AF
Tritanopia (blue-blind)
#004F6A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f20b1;
/* rgb */ color: rgb(31, 32, 177);
/* oklch */ color: oklch(37.7% 0.216 269.5);
Tailwind
colors: {
  custom: {
    50: '#785fca',
    500: '#1f20b1',
    950: '#000000',
  },
}
SCSS
$custom: #1f20b1;
$custom-light: #785fca;
$custom-dark: #000000;
JSON
{
  "hex": "#1f20b1",
  "rgb": {
    "r": 31,
    "g": 32,
    "b": 177
  },
  "hsl": {
    "h": 239.589,
    "s": 70.192,
    "l": 40.784
  },
  "oklch": {
    "l": 0.37744,
    "c": 0.21555,
    "h": 269.5
  },
  "luminance": 0.04499
}

Semantic roles & 50–950 ramp

primary
#1F20B1
secondary
#CAC962
accent
#EC3BED
background
#F8F5FC
surface
#EFEAF9
border
#CAC6D2
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #1F20B1

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

Preview Lab → · Contrast checker → · Palette generator →

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