#1F208E#1F208E

#1F208E is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.174 H 271.7°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#1F208E
RGBrgb(31, 32, 142)
HSLhsl(239, 64%, 34%)
HSVhsv(239, 78%, 56%)
CMYKcmyk(78.2%, 77.5%, 0%, 44.3%)
CIE-LABlab(21.12, 38.67, -59.93)
CIE-LCHlch(21.12, 71.32, 302.83°)
OKLaboklab(33.65% 0.0053 -0.1735)
OKLCHoklch(33.65% 0.174 271.7)
XYZxyz(5.9624, 3.2767, 25.9042)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F208E #8E8D1F
analogous
#1F588E #1F208E #561F8E
triadic
#1F208E #8E1F20 #208E1F
tetradic
#1F208E #8E1F58 #8E8D1F #1F8E56
square
#1F208E #8E1F58 #8E8D1F #1F8E56
split-complementary
#1F208E #8E561F #588E1F
monochromatic
#09092A #14155C #1F208E #2A2BC0 #4F50D9

Accessibility & contrast

On white

12.69
#1F208E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#1F208E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F208E
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F208E#FFFFFF#000000##FFFFFF
##1F208E1.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#002D8C
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f208e;
/* rgb */ color: rgb(31, 32, 142);
/* oklch */ color: oklch(33.6% 0.174 271.7);
Tailwind
colors: {
  custom: {
    50: '#6f5db0',
    500: '#1f208e',
    950: '#000000',
  },
}
SCSS
$custom: #1f208e;
$custom-light: #6f5db0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f208e",
  "rgb": {
    "r": 31,
    "g": 32,
    "b": 142
  },
  "hsl": {
    "h": 239.459,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33649,
    "c": 0.17357,
    "h": 271.7
  },
  "luminance": 0.03277
}

Semantic roles & 50–950 ramp

primary
#1F208E
secondary
#BBBA4D
accent
#E641E7
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F208E

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

Preview Lab → · Contrast checker → · Palette generator →

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