#1F3D8D#1F3D8D

#1F3D8D is a dark, vivid blue. Relative luminance 0.056; OKLCH L 38.8% C 0.138 H 265.0°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#1F3D8D
RGBrgb(31, 61, 141)
HSLhsl(224, 64%, 34%)
HSVhsv(224, 78%, 55%)
CMYKcmyk(78%, 56.7%, 0%, 44.7%)
CIE-LABlab(28.25, 19.25, -47.62)
CIE-LCHlch(28.25, 51.36, 292.01°)
OKLaboklab(38.84% -0.012 -0.1373)
OKLCHoklch(38.84% 0.138 265)
XYZxyz(7.0398, 5.5511, 25.8946)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3D8D #8D6F1F
analogous
#1F748D #1F3D8D #381F8D
triadic
#1F3D8D #8D1F3D #3D8D1F
tetradic
#1F3D8D #8D1F74 #8D6F1F #1F8D38
square
#1F3D8D #8D1F74 #8D6F1F #1F8D38
split-complementary
#1F3D8D #8D381F #748D1F
monochromatic
#091229 #14275B #1F3D8D #2A53BF #4E74D8

Accessibility & contrast

On white

9.95
#1F3D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#1F3D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3D8D
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3D8D#FFFFFF#000000##FFFFFF
##1F3D8D1.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f3d8d;
/* rgb */ color: rgb(31, 61, 141);
/* oklch */ color: oklch(38.8% 0.138 265.0);
Tailwind
colors: {
  custom: {
    50: '#6c72af',
    500: '#1f3d8d',
    950: '#000000',
  },
}
SCSS
$custom: #1f3d8d;
$custom-light: #6c72af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3d8d",
  "rgb": {
    "r": 31,
    "g": 61,
    "b": 141
  },
  "hsl": {
    "h": 223.636,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38844,
    "c": 0.13785,
    "h": 265
  },
  "luminance": 0.05552
}

Semantic roles & 50–950 ramp

primary
#1F3D8D
secondary
#BB9D4D
accent
#BA41E7
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #1F3D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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