#1F207E#1F207E

#1F207E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.153 H 273.1°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#1F207E
RGBrgb(31, 32, 126)
HSLhsl(239, 61%, 31%)
HSVhsv(239, 75%, 49%)
CMYKcmyk(75.4%, 74.6%, 0%, 50.6%)
CIE-LABlab(19.35, 33.03, -52.79)
CIE-LCHlch(19.35, 62.27, 302.04°)
OKLaboklab(31.87% 0.0082 -0.1527)
OKLCHoklch(31.87% 0.153 273.1)
XYZxyz(4.8462, 2.8302, 20.0255)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F207E #7E7D1F
analogous
#1F4F7E #1F207E #4D1F7E
triadic
#1F207E #7E1F20 #207E1F
tetradic
#1F207E #7E1F4F #7E7D1F #1F7E4D
square
#1F207E #7E1F4F #7E7D1F #1F7E4D
split-complementary
#1F207E #7E4D1F #4F7E1F
monochromatic
#07071C #13144D #1F207E #2B2CAF #4647D1

Accessibility & contrast

On white

13.41
#1F207E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1F207E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F207E
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F207E#FFFFFF#000000##FFFFFF
##1F207E1.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1f207e;
/* rgb */ color: rgb(31, 32, 126);
/* oklch */ color: oklch(31.9% 0.153 273.1);
Tailwind
colors: {
  custom: {
    50: '#6b5ca4',
    500: '#1f207e',
    950: '#000000',
  },
}
SCSS
$custom: #1f207e;
$custom-light: #6b5ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f207e",
  "rgb": {
    "r": 31,
    "g": 32,
    "b": 126
  },
  "hsl": {
    "h": 239.368,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31867,
    "c": 0.15293,
    "h": 273.1
  },
  "luminance": 0.02831
}

Semantic roles & 50–950 ramp

primary
#1F207E
secondary
#B1B048
accent
#E244E4
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #1F207E

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

Preview Lab → · Contrast checker → · Palette generator →

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