#1F208C#1F208C

#1F208C is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.171 H 271.9°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#1F208C
RGBrgb(31, 32, 140)
HSLhsl(239, 64%, 34%)
HSVhsv(239, 78%, 55%)
CMYKcmyk(77.9%, 77.1%, 0%, 45.1%)
CIE-LABlab(20.89, 37.98, -59.05)
CIE-LCHlch(20.89, 70.21, 302.75°)
OKLaboklab(33.42% 0.0057 -0.1709)
OKLCHoklch(33.42% 0.171 271.9)
XYZxyz(5.8136, 3.2172, 25.1204)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F208C #8C8B1F
analogous
#1F568C #1F208C #541F8C
triadic
#1F208C #8C1F20 #208C1F
tetradic
#1F208C #8C1F56 #8C8B1F #1F8C54
square
#1F208C #8C1F56 #8C8B1F #1F8C54
split-complementary
#1F208C #8C541F #568C1F
monochromatic
#090928 #14155A #1F208C #2A2BBE #4E4FD8

Accessibility & contrast

On white

12.78
#1F208C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#1F208C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F208C
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F208C#FFFFFF#000000##FFFFFF
##1F208C1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#002D8A
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f208c;
/* rgb */ color: rgb(31, 32, 140);
/* oklch */ color: oklch(33.4% 0.171 271.9);
Tailwind
colors: {
  custom: {
    50: '#6f5daf',
    500: '#1f208c',
    950: '#000000',
  },
}
SCSS
$custom: #1f208c;
$custom-light: #6f5daf;
$custom-dark: #000000;
JSON
{
  "hex": "#1f208c",
  "rgb": {
    "r": 31,
    "g": 32,
    "b": 140
  },
  "hsl": {
    "h": 239.45,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33422,
    "c": 0.17104,
    "h": 271.9
  },
  "luminance": 0.03218
}

Semantic roles & 50–950 ramp

primary
#1F208C
secondary
#BBBA4C
accent
#E541E7
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #1F208C

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

Preview Lab → · Contrast checker → · Palette generator →

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