#1F4396#1F4396

#1F4396 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 40.9% C 0.143 H 263.6°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#1F4396
RGBrgb(31, 67, 150)
HSLhsl(222, 66%, 35%)
HSVhsv(222, 79%, 59%)
CMYKcmyk(79.3%, 55.3%, 0%, 41.2%)
CIE-LABlab(30.66, 18.70, -49.23)
CIE-LCHlch(30.66, 52.67, 290.80°)
OKLaboklab(40.88% -0.0159 -0.142)
OKLCHoklch(40.88% 0.143 263.6)
XYZxyz(8.0753, 6.5067, 29.6786)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4396 #96721F
analogous
#1F7E96 #1F4396 #371F96
triadic
#1F4396 #961F43 #43961F
tetradic
#1F4396 #961F7E #96721F #1F9637
square
#1F4396 #961F7E #96721F #1F9637
split-complementary
#1F4396 #96371F #7E961F
monochromatic
#0A1631 #152C63 #1F4396 #295AC9 #547DDC

Accessibility & contrast

On white

9.12
#1F4396 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#1F4396 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4396
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4396#FFFFFF#000000##FFFFFF
##1F43961.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E99
Deuteranopia (green-blind)
#004394
Tritanopia (blue-blind)
#005766
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1f4396;
/* rgb */ color: rgb(31, 67, 150);
/* oklch */ color: oklch(40.9% 0.143 263.6);
Tailwind
colors: {
  custom: {
    50: '#6e76b5',
    500: '#1f4396',
    950: '#000000',
  },
}
SCSS
$custom: #1f4396;
$custom-light: #6e76b5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4396",
  "rgb": {
    "r": 31,
    "g": 67,
    "b": 150
  },
  "hsl": {
    "h": 221.849,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40884,
    "c": 0.14284,
    "h": 263.6
  },
  "luminance": 0.06508
}

Semantic roles & 50–950 ramp

primary
#1F4396
secondary
#BF9E52
accent
#B53FE9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F4396

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

Preview Lab → · Contrast checker → · Palette generator →

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