#1F208B#1F208B

#1F208B is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.170 H 272.0°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#1F208B
RGBrgb(31, 32, 139)
HSLhsl(239, 64%, 33%)
HSVhsv(239, 78%, 55%)
CMYKcmyk(77.7%, 77%, 0%, 45.5%)
CIE-LABlab(20.78, 37.63, -58.62)
CIE-LCHlch(20.78, 69.66, 302.70°)
OKLaboklab(33.31% 0.0059 -0.1697)
OKLCHoklch(33.31% 0.17 272)
XYZxyz(5.7402, 3.1878, 24.7339)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F208B #8B8A1F
analogous
#1F568B #1F208B #541F8B
triadic
#1F208B #8B1F20 #208B1F
tetradic
#1F208B #8B1F56 #8B8A1F #1F8B54
square
#1F208B #8B1F56 #8B8A1F #1F8B54
split-complementary
#1F208B #8B541F #568B1F
monochromatic
#090927 #141459 #1F208B #2A2CBD #4D4ED7

Accessibility & contrast

On white

12.82
#1F208B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F208B
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F208B#FFFFFF#000000##FFFFFF
##1F208B1.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378E
Deuteranopia (green-blind)
#002D89
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f208b;
/* rgb */ color: rgb(31, 32, 139);
/* oklch */ color: oklch(33.3% 0.170 272.0);
Tailwind
colors: {
  custom: {
    50: '#6e5dae',
    500: '#1f208b',
    950: '#000000',
  },
}
SCSS
$custom: #1f208b;
$custom-light: #6e5dae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f208b",
  "rgb": {
    "r": 31,
    "g": 32,
    "b": 139
  },
  "hsl": {
    "h": 239.444,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.3331,
    "c": 0.16978,
    "h": 272
  },
  "luminance": 0.03188
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F208B

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

Preview Lab → · Contrast checker → · Palette generator →

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