#1F3D8A#1F3D8A

#1F3D8A is a dark, vivid blue. Relative luminance 0.055; OKLCH L 38.6% C 0.134 H 264.7°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#1F3D8A
RGBrgb(31, 61, 138)
HSLhsl(223, 63%, 33%)
HSVhsv(223, 78%, 54%)
CMYKcmyk(77.5%, 55.8%, 0%, 45.9%)
CIE-LABlab(28.02, 18.05, -46.15)
CIE-LCHlch(28.02, 49.55, 291.36°)
OKLaboklab(38.59% -0.0123 -0.133)
OKLCHoklch(38.59% 0.134 264.7)
XYZxyz(6.8196, 5.4630, 24.7349)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3D8A #8A6C1F
analogous
#1F728A #1F3D8A #371F8A
triadic
#1F3D8A #8A1F3D #3D8A1F
tetradic
#1F3D8A #8A1F72 #8A6C1F #1F8A37
square
#1F3D8A #8A1F72 #8A6C1F #1F8A37
split-complementary
#1F3D8A #8A371F #728A1F
monochromatic
#091126 #142758 #1F3D8A #2A53BC #4C73D7

Accessibility & contrast

On white

10.03
#1F3D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#1F3D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3D8A
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3D8A#FFFFFF#000000##FFFFFF
##1F3D8A1.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478D
Deuteranopia (green-blind)
#003D88
Tritanopia (blue-blind)
#00505D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1f3d8a;
/* rgb */ color: rgb(31, 61, 138);
/* oklch */ color: oklch(38.6% 0.134 264.7);
Tailwind
colors: {
  custom: {
    50: '#6c72ad',
    500: '#1f3d8a',
    950: '#000000',
  },
}
SCSS
$custom: #1f3d8a;
$custom-light: #6c72ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3d8a",
  "rgb": {
    "r": 31,
    "g": 61,
    "b": 138
  },
  "hsl": {
    "h": 223.178,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38593,
    "c": 0.13355,
    "h": 264.7
  },
  "luminance": 0.05464
}

Semantic roles & 50–950 ramp

primary
#1F3D8A
secondary
#BA9B4B
accent
#B841E6
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #1F3D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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