#1F367D#1F367D

#1F367D is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.0% C 0.124 H 266.5°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#1F367D
RGBrgb(31, 54, 125)
HSLhsl(225, 60%, 31%)
HSVhsv(225, 75%, 49%)
CMYKcmyk(75.2%, 56.8%, 0%, 51%)
CIE-LABlab(24.98, 17.73, -42.95)
CIE-LCHlch(24.98, 46.46, 292.44°)
OKLaboklab(35.98% -0.0075 -0.1237)
OKLCHoklch(35.98% 0.124 266.5)
XYZxyz(5.5846, 4.4097, 19.9549)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F367D #7D661F
analogous
#1F657D #1F367D #371F7D
triadic
#1F367D #7D1F36 #367D1F
tetradic
#1F367D #7D1F65 #7D661F #1F7D37
square
#1F367D #7D1F65 #7D661F #1F7D37
split-complementary
#1F367D #7D371F #657D1F
monochromatic
#070C1B #13214C #1F367D #2B4BAE #4568D1

Accessibility & contrast

On white

11.16
#1F367D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#1F367D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F367D
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F367D#FFFFFF#000000##FFFFFF
##1F367D1.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00407F
Deuteranopia (green-blind)
#00377C
Tritanopia (blue-blind)
#004754
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f367d;
/* rgb */ color: rgb(31, 54, 125);
/* oklch */ color: oklch(36.0% 0.124 266.5);
Tailwind
colors: {
  custom: {
    50: '#696ca3',
    500: '#1f367d',
    950: '#000000',
  },
}
SCSS
$custom: #1f367d;
$custom-light: #696ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f367d",
  "rgb": {
    "r": 31,
    "g": 54,
    "b": 125
  },
  "hsl": {
    "h": 225.319,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.35981,
    "c": 0.12393,
    "h": 266.5
  },
  "luminance": 0.0441
}

Semantic roles & 50–950 ramp

primary
#1F367D
secondary
#B09748
accent
#BC44E3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1F367D

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

Preview Lab → · Contrast checker → · Palette generator →

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