#1F208F#1F208F

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

Color values

HEX#1F208F
RGBrgb(31, 32, 143)
HSLhsl(239, 64%, 34%)
HSVhsv(239, 78%, 56%)
CMYKcmyk(78.3%, 77.6%, 0%, 43.9%)
CIE-LABlab(21.23, 39.02, -60.36)
CIE-LCHlch(21.23, 71.87, 302.88°)
OKLaboklab(33.76% 0.0051 -0.1747)
OKLCHoklch(33.76% 0.175 271.7)
XYZxyz(6.0378, 3.3068, 26.3013)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F208F #8F8E1F
analogous
#1F588F #1F208F #561F8F
triadic
#1F208F #8F1F20 #208F1F
tetradic
#1F208F #8F1F58 #8F8E1F #1F8F56
square
#1F208F #8F1F58 #8F8E1F #1F8F56
split-complementary
#1F208F #8F561F #588F1F
monochromatic
#09092A #14155D #1F208F #2A2BC1 #4F51D9

Accessibility & contrast

On white

12.64
#1F208F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F208F
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F208F#FFFFFF#000000##FFFFFF
##1F208F1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f208f;
/* rgb */ color: rgb(31, 32, 143);
/* oklch */ color: oklch(33.8% 0.175 271.7);
Tailwind
colors: {
  custom: {
    50: '#6f5db1',
    500: '#1f208f',
    950: '#000000',
  },
}
SCSS
$custom: #1f208f;
$custom-light: #6f5db1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f208f",
  "rgb": {
    "r": 31,
    "g": 32,
    "b": 143
  },
  "hsl": {
    "h": 239.464,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.33763,
    "c": 0.17482,
    "h": 271.7
  },
  "luminance": 0.03308
}

Semantic roles & 50–950 ramp

primary
#1F208F
secondary
#BCBB4E
accent
#E640E7
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F208F

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

Preview Lab → · Contrast checker → · Palette generator →

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