#1F206B#1F206B

#1F206B is a dark, vivid blue. Relative luminance 0.024; OKLCH L 29.9% C 0.127 H 275.0°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#1F206B
RGBrgb(31, 32, 107)
HSLhsl(239, 55%, 27%)
HSVhsv(239, 71%, 42%)
CMYKcmyk(71%, 70.1%, 0%, 58%)
CIE-LABlab(17.39, 26.05, -43.78)
CIE-LCHlch(17.39, 50.94, 300.75°)
OKLaboklab(29.86% 0.011 -0.1264)
OKLCHoklch(29.86% 0.127 275)
XYZxyz(3.7346, 2.3855, 14.1707)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F206B #6B6A1F
analogous
#1F466B #1F206B #441F6B
triadic
#1F206B #6B1F20 #206B1F
tetradic
#1F206B #6B1F46 #6B6A1F #1F6B44
square
#1F206B #6B1F46 #6B6A1F #1F6B44
split-complementary
#1F206B #6B441F #466B1F
monochromatic
#070718 #11123C #1F206B #2D2E9A #3D3FC7

Accessibility & contrast

On white

14.22
#1F206B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#1F206B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F206B
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F206B#FFFFFF#000000##FFFFFF
##1F206B1.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6D
Deuteranopia (green-blind)
#00276A
Tritanopia (blue-blind)
#003442
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1f206b;
/* rgb */ color: rgb(31, 32, 107);
/* oklch */ color: oklch(29.9% 0.127 275.0);
Tailwind
colors: {
  custom: {
    50: '#665c96',
    500: '#1f206b',
    950: '#000000',
  },
}
SCSS
$custom: #1f206b;
$custom-light: #665c96;
$custom-dark: #000000;
JSON
{
  "hex": "#1f206b",
  "rgb": {
    "r": 31,
    "g": 32,
    "b": 107
  },
  "hsl": {
    "h": 239.211,
    "s": 55.072,
    "l": 27.059
  },
  "oklch": {
    "l": 0.29864,
    "c": 0.12688,
    "h": 275
  },
  "luminance": 0.02386
}

Semantic roles & 50–950 ramp

primary
#1F206B
secondary
#9F9E47
accent
#DC49DE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #1F206B

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

Preview Lab → · Contrast checker → · Palette generator →

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