#1F208D#1F208D

#1F208D is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.5% C 0.172 H 271.8°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#1F208D
RGBrgb(31, 32, 141)
HSLhsl(239, 64%, 34%)
HSVhsv(239, 78%, 55%)
CMYKcmyk(78%, 77.3%, 0%, 44.7%)
CIE-LABlab(21.01, 38.33, -59.49)
CIE-LCHlch(21.01, 70.77, 302.79°)
OKLaboklab(33.54% 0.0055 -0.1722)
OKLCHoklch(33.54% 0.172 271.8)
XYZxyz(5.8877, 3.2468, 25.5105)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F208D #8D8C1F
analogous
#1F578D #1F208D #551F8D
triadic
#1F208D #8D1F20 #208D1F
tetradic
#1F208D #8D1F57 #8D8C1F #1F8D55
square
#1F208D #8D1F57 #8D8C1F #1F8D55
split-complementary
#1F208D #8D551F #578D1F
monochromatic
#090929 #14155B #1F208D #2A2BBF #4E50D8

Accessibility & contrast

On white

12.73
#1F208D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1F208D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F208D
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F208D#FFFFFF#000000##FFFFFF
##1F208D1.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#002D8B
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f208d;
/* rgb */ color: rgb(31, 32, 141);
/* oklch */ color: oklch(33.5% 0.172 271.8);
Tailwind
colors: {
  custom: {
    50: '#6f5db0',
    500: '#1f208d',
    950: '#000000',
  },
}
SCSS
$custom: #1f208d;
$custom-light: #6f5db0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f208d",
  "rgb": {
    "r": 31,
    "g": 32,
    "b": 141
  },
  "hsl": {
    "h": 239.455,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.33536,
    "c": 0.17231,
    "h": 271.8
  },
  "luminance": 0.03247
}

Semantic roles & 50–950 ramp

primary
#1F208D
secondary
#BBBA4D
accent
#E541E7
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F208D

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

Preview Lab → · Contrast checker → · Palette generator →

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