#1F3A8D#1F3A8D

#1F3A8D is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.2% C 0.142 H 266.1°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#1F3A8D
RGBrgb(31, 58, 141)
HSLhsl(225, 64%, 34%)
HSVhsv(225, 78%, 55%)
CMYKcmyk(78%, 58.9%, 0%, 44.7%)
CIE-LABlab(27.41, 21.32, -48.99)
CIE-LCHlch(27.41, 53.43, 293.52°)
OKLaboklab(38.21% -0.0097 -0.1414)
OKLCHoklch(38.21% 0.142 266.1)
XYZxyz(6.8842, 5.2397, 25.8427)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3A8D #8D721F
analogous
#1F718D #1F3A8D #3B1F8D
triadic
#1F3A8D #8D1F3A #3A8D1F
tetradic
#1F3A8D #8D1F71 #8D721F #1F8D3B
square
#1F3A8D #8D1F71 #8D721F #1F8D3B
split-complementary
#1F3A8D #8D3B1F #718D1F
monochromatic
#091129 #14255B #1F3A8D #2A4FBF #4E70D8

Accessibility & contrast

On white

10.25
#1F3A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#1F3A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3A8D
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3A8D#FFFFFF#000000##FFFFFF
##1F3A8D1.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004690
Deuteranopia (green-blind)
#003C8B
Tritanopia (blue-blind)
#004F5D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1f3a8d;
/* rgb */ color: rgb(31, 58, 141);
/* oklch */ color: oklch(38.2% 0.142 266.1);
Tailwind
colors: {
  custom: {
    50: '#6d6faf',
    500: '#1f3a8d',
    950: '#000000',
  },
}
SCSS
$custom: #1f3a8d;
$custom-light: #6d6faf;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3a8d",
  "rgb": {
    "r": 31,
    "g": 58,
    "b": 141
  },
  "hsl": {
    "h": 225.273,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3821,
    "c": 0.14174,
    "h": 266.1
  },
  "luminance": 0.05241
}

Semantic roles & 50–950 ramp

primary
#1F3A8D
secondary
#BBA04D
accent
#BE41E7
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #1F3A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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