#1F3D96#1F3D96

#1F3D96 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.6% C 0.151 H 265.6°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#1F3D96
RGBrgb(31, 61, 150)
HSLhsl(225, 66%, 35%)
HSVhsv(225, 79%, 59%)
CMYKcmyk(79.3%, 59.3%, 0%, 41.2%)
CIE-LABlab(28.98, 22.82, -51.96)
CIE-LCHlch(28.98, 56.75, 293.71°)
OKLaboklab(39.62% -0.0115 -0.1501)
OKLCHoklch(39.62% 0.151 265.6)
XYZxyz(7.7369, 5.8299, 29.5658)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3D96 #96781F
analogous
#1F7896 #1F3D96 #3C1F96
triadic
#1F3D96 #961F3D #3D961F
tetradic
#1F3D96 #961F78 #96781F #1F963C
square
#1F3D96 #961F78 #96781F #1F963C
split-complementary
#1F3D96 #963C1F #78961F
monochromatic
#0A1431 #152863 #1F3D96 #2952C9 #5476DC

Accessibility & contrast

On white

9.69
#1F3D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#1F3D96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3D96
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3D96#FFFFFF#000000##FFFFFF
##1F3D961.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A99
Deuteranopia (green-blind)
#003F94
Tritanopia (blue-blind)
#005363
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1f3d96;
/* rgb */ color: rgb(31, 61, 150);
/* oklch */ color: oklch(39.6% 0.151 265.6);
Tailwind
colors: {
  custom: {
    50: '#6f72b6',
    500: '#1f3d96',
    950: '#000000',
  },
}
SCSS
$custom: #1f3d96;
$custom-light: #6f72b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3d96",
  "rgb": {
    "r": 31,
    "g": 61,
    "b": 150
  },
  "hsl": {
    "h": 224.874,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39621,
    "c": 0.15052,
    "h": 265.6
  },
  "luminance": 0.05831
}

Semantic roles & 50–950 ramp

primary
#1F3D96
secondary
#BFA352
accent
#BE3FE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1F3D96

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

Preview Lab → · Contrast checker → · Palette generator →

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