#1F3F8A#1F3F8A

#1F3F8A is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.0% C 0.131 H 263.9°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#1F3F8A
RGBrgb(31, 63, 138)
HSLhsl(222, 63%, 33%)
HSVhsv(222, 78%, 54%)
CMYKcmyk(77.5%, 54.3%, 0%, 45.9%)
CIE-LABlab(28.59, 16.66, -45.21)
CIE-LCHlch(28.59, 48.18, 290.23°)
OKLaboklab(39.03% -0.0139 -0.1302)
OKLCHoklch(39.03% 0.131 263.9)
XYZxyz(6.9284, 5.6805, 24.7711)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3F8A #8A6A1F
analogous
#1F748A #1F3F8A #341F8A
triadic
#1F3F8A #8A1F3F #3F8A1F
tetradic
#1F3F8A #8A1F74 #8A6A1F #1F8A34
square
#1F3F8A #8A1F74 #8A6A1F #1F8A34
split-complementary
#1F3F8A #8A341F #748A1F
monochromatic
#091126 #142858 #1F3F8A #2A56BC #4C76D7

Accessibility & contrast

On white

9.83
#1F3F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#1F3F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3F8A
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3F8A#FFFFFF#000000##FFFFFF
##1F3F8A1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08498D
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#00515E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1f3f8a;
/* rgb */ color: rgb(31, 63, 138);
/* oklch */ color: oklch(39.0% 0.131 263.9);
Tailwind
colors: {
  custom: {
    50: '#6b73ad',
    500: '#1f3f8a',
    950: '#000000',
  },
}
SCSS
$custom: #1f3f8a;
$custom-light: #6b73ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3f8a",
  "rgb": {
    "r": 31,
    "g": 63,
    "b": 138
  },
  "hsl": {
    "h": 222.056,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39029,
    "c": 0.13094,
    "h": 263.9
  },
  "luminance": 0.05681
}

Semantic roles & 50–950 ramp

primary
#1F3F8A
secondary
#BA994B
accent
#B541E6
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #1F3F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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