#1F3E96#1F3E96

#1F3E96 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.8% C 0.149 H 265.3°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#1F3E96
RGBrgb(31, 62, 150)
HSLhsl(224, 66%, 35%)
HSVhsv(224, 79%, 59%)
CMYKcmyk(79.3%, 58.7%, 0%, 41.2%)
CIE-LABlab(29.25, 22.13, -51.51)
CIE-LCHlch(29.25, 56.06, 293.25°)
OKLaboklab(39.83% -0.0122 -0.1487)
OKLCHoklch(39.83% 0.149 265.3)
XYZxyz(7.7908, 5.9377, 29.5837)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3E96 #96771F
analogous
#1F7996 #1F3E96 #3C1F96
triadic
#1F3E96 #961F3E #3E961F
tetradic
#1F3E96 #961F79 #96771F #1F963C
square
#1F3E96 #961F79 #96771F #1F963C
split-complementary
#1F3E96 #963C1F #79961F
monochromatic
#0A1431 #152963 #1F3E96 #2953C9 #5477DC

Accessibility & contrast

On white

9.60
#1F3E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#1F3E96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3E96
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3E96#FFFFFF#000000##FFFFFF
##1F3E961.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B99
Deuteranopia (green-blind)
#004094
Tritanopia (blue-blind)
#005463
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1f3e96;
/* rgb */ color: rgb(31, 62, 150);
/* oklch */ color: oklch(39.8% 0.149 265.3);
Tailwind
colors: {
  custom: {
    50: '#6f72b6',
    500: '#1f3e96',
    950: '#000000',
  },
}
SCSS
$custom: #1f3e96;
$custom-light: #6f72b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3e96",
  "rgb": {
    "r": 31,
    "g": 62,
    "b": 150
  },
  "hsl": {
    "h": 224.37,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39827,
    "c": 0.14924,
    "h": 265.3
  },
  "luminance": 0.05939
}

Semantic roles & 50–950 ramp

primary
#1F3E96
secondary
#BFA352
accent
#BD3FE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F3E96

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

Preview Lab → · Contrast checker → · Palette generator →

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