#1F207D#1F207D

#1F207D is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.152 H 273.2°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#1F207D
RGBrgb(31, 32, 125)
HSLhsl(239, 60%, 31%)
HSVhsv(239, 75%, 49%)
CMYKcmyk(75.2%, 74.4%, 0%, 51%)
CIE-LABlab(19.24, 32.67, -52.33)
CIE-LCHlch(19.24, 61.69, 301.98°)
OKLaboklab(31.76% 0.0084 -0.1514)
OKLCHoklch(31.76% 0.152 273.2)
XYZxyz(4.7820, 2.8045, 19.6874)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F207D #7D7C1F
analogous
#1F4F7D #1F207D #4D1F7D
triadic
#1F207D #7D1F20 #207D1F
tetradic
#1F207D #7D1F4F #7D7C1F #1F7D4D
square
#1F207D #7D1F4F #7D7C1F #1F7D4D
split-complementary
#1F207D #7D4D1F #4F7D1F
monochromatic
#07071B #13134C #1F207D #2B2DAE #4547D1

Accessibility & contrast

On white

13.45
#1F207D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#1F207D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F207D
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F207D#FFFFFF#000000##FFFFFF
##1F207D1.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002A7B
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1f207d;
/* rgb */ color: rgb(31, 32, 125);
/* oklch */ color: oklch(31.8% 0.152 273.2);
Tailwind
colors: {
  custom: {
    50: '#6b5ca4',
    500: '#1f207d',
    950: '#000000',
  },
}
SCSS
$custom: #1f207d;
$custom-light: #6b5ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f207d",
  "rgb": {
    "r": 31,
    "g": 32,
    "b": 125
  },
  "hsl": {
    "h": 239.362,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.31758,
    "c": 0.15161,
    "h": 273.2
  },
  "luminance": 0.02805
}

Semantic roles & 50–950 ramp

primary
#1F207D
secondary
#B0AF48
accent
#E244E3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #1F207D

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

Preview Lab → · Contrast checker → · Palette generator →

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