#1F3E8D#1F3E8D

#1F3E8D is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.1% C 0.137 H 264.6°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#1F3E8D
RGBrgb(31, 62, 141)
HSLhsl(223, 64%, 34%)
HSVhsv(223, 78%, 55%)
CMYKcmyk(78%, 56%, 0%, 44.7%)
CIE-LABlab(28.53, 18.55, -47.16)
CIE-LCHlch(28.53, 50.68, 291.48°)
OKLaboklab(39.06% -0.0128 -0.1359)
OKLCHoklch(39.06% 0.137 264.6)
XYZxyz(7.0937, 5.6588, 25.9125)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3E8D #8D6E1F
analogous
#1F758D #1F3E8D #371F8D
triadic
#1F3E8D #8D1F3E #3E8D1F
tetradic
#1F3E8D #8D1F75 #8D6E1F #1F8D37
square
#1F3E8D #8D1F75 #8D6E1F #1F8D37
split-complementary
#1F3E8D #8D371F #758D1F
monochromatic
#091229 #14285B #1F3E8D #2A54BF #4E75D8

Accessibility & contrast

On white

9.85
#1F3E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#1F3E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3E8D
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3E8D#FFFFFF#000000##FFFFFF
##1F3E8D1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004990
Deuteranopia (green-blind)
#003E8B
Tritanopia (blue-blind)
#00515F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1f3e8d;
/* rgb */ color: rgb(31, 62, 141);
/* oklch */ color: oklch(39.1% 0.137 264.6);
Tailwind
colors: {
  custom: {
    50: '#6c72af',
    500: '#1f3e8d',
    950: '#000000',
  },
}
SCSS
$custom: #1f3e8d;
$custom-light: #6c72af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3e8d",
  "rgb": {
    "r": 31,
    "g": 62,
    "b": 141
  },
  "hsl": {
    "h": 223.091,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39059,
    "c": 0.13654,
    "h": 264.6
  },
  "luminance": 0.0566
}

Semantic roles & 50–950 ramp

primary
#1F3E8D
secondary
#BB9C4D
accent
#B841E7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #1F3E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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