#1F209D#1F209D

#1F209D is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.4% C 0.192 H 270.7°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#1F209D
RGBrgb(31, 32, 157)
HSLhsl(240, 67%, 37%)
HSVhsv(240, 80%, 62%)
CMYKcmyk(80.3%, 79.6%, 0%, 38.4%)
CIE-LABlab(22.85, 43.75, -66.31)
CIE-LCHlch(22.85, 79.44, 303.41°)
OKLaboklab(35.38% 0.0023 -0.192)
OKLCHoklch(35.38% 0.192 270.7)
XYZxyz(7.1653, 3.7578, 32.2394)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F209D #9D9C1F
analogous
#1F5F9D #1F209D #5D1F9D
triadic
#1F209D #9D1F20 #209D1F
tetradic
#1F209D #9D1F5F #9D9C1F #1F9D5D
square
#1F209D #9D1F5F #9D9C1F #1F9D5D
split-complementary
#1F209D #9D5D1F #5F9D1F
monochromatic
#0B0B37 #15166A #1F209D #292AD0 #5859DE

Accessibility & contrast

On white

11.99
#1F209D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#1F209D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F209D
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F209D#FFFFFF#000000##FFFFFF
##1F209D1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA0
Deuteranopia (green-blind)
#00309B
Tritanopia (blue-blind)
#00475E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f209d;
/* rgb */ color: rgb(31, 32, 157);
/* oklch */ color: oklch(35.4% 0.192 270.7);
Tailwind
colors: {
  custom: {
    50: '#735ebb',
    500: '#1f209d',
    950: '#000000',
  },
}
SCSS
$custom: #1f209d;
$custom-light: #735ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f209d",
  "rgb": {
    "r": 31,
    "g": 32,
    "b": 157
  },
  "hsl": {
    "h": 239.524,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.35378,
    "c": 0.19202,
    "h": 270.7
  },
  "luminance": 0.03759
}

Semantic roles & 50–950 ramp

primary
#1F209D
secondary
#C2C156
accent
#E93EEA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #1F209D

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

Preview Lab → · Contrast checker → · Palette generator →

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