#1F20BD#1F20BD

#1F20BD is a dark, highly saturated blue. Relative luminance 0.050; OKLCH L 39.2% C 0.229 H 269.0°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#1F20BD
RGBrgb(31, 32, 189)
HSLhsl(240, 72%, 43%)
HSVhsv(240, 84%, 74%)
CMYKcmyk(83.6%, 83.1%, 0%, 25.9%)
CIE-LABlab(26.73, 53.93, -79.14)
CIE-LCHlch(26.73, 95.77, 304.28°)
OKLaboklab(39.19% -0.0041 -0.2291)
OKLCHoklch(39.19% 0.229 269)
XYZxyz(10.2638, 4.9972, 48.5579)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F20BD #BDBC1F
analogous
#1F6FBD #1F20BD #6D1FBD
triadic
#1F20BD #BD1F20 #20BD1F
tetradic
#1F20BD #BD1F6F #BDBC1F #1FBD6D
square
#1F20BD #BD1F6F #BDBC1F #1FBD6D
split-complementary
#1F20BD #BD6D1F #6FBD1F
monochromatic
#0E0E54 #161788 #1F20BD #3A3BDF #6F70E7

Accessibility & contrast

On white

10.50
#1F20BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#1F20BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F20BD
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F20BD#FFFFFF#000000##FFFFFF
##1F20BD1.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047C1
Deuteranopia (green-blind)
#0037BA
Tritanopia (blue-blind)
#005371
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1f20bd;
/* rgb */ color: rgb(31, 32, 189);
/* oklch */ color: oklch(39.2% 0.229 269.0);
Tailwind
colors: {
  custom: {
    50: '#7c60d2',
    500: '#1f20bd',
    950: '#000000',
  },
}
SCSS
$custom: #1f20bd;
$custom-light: #7c60d2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f20bd",
  "rgb": {
    "r": 31,
    "g": 32,
    "b": 189
  },
  "hsl": {
    "h": 239.62,
    "s": 71.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.39187,
    "c": 0.22916,
    "h": 269
  },
  "luminance": 0.04998
}

Semantic roles & 50–950 ramp

primary
#1F20BD
secondary
#CECD6A
accent
#ED39EF
background
#F8F5FD
surface
#F0EAFA
border
#CBC6D3
text
#0C0514
muted
#7D7983

Preview Lab

Preview with #1F20BD

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

Preview Lab → · Contrast checker → · Palette generator →

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