#1F367E#1F367E

#1F367E is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.1% C 0.125 H 266.6°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#1F367E
RGBrgb(31, 54, 126)
HSLhsl(225, 61%, 31%)
HSVhsv(225, 75%, 49%)
CMYKcmyk(75.4%, 57.1%, 0%, 50.6%)
CIE-LABlab(25.06, 18.13, -43.45)
CIE-LCHlch(25.06, 47.08, 292.65°)
OKLaboklab(36.07% -0.0074 -0.1252)
OKLCHoklch(36.07% 0.125 266.6)
XYZxyz(5.6488, 4.4354, 20.2930)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F367E #7E671F
analogous
#1F657E #1F367E #371F7E
triadic
#1F367E #7E1F36 #367E1F
tetradic
#1F367E #7E1F65 #7E671F #1F7E37
square
#1F367E #7E1F65 #7E671F #1F7E37
split-complementary
#1F367E #7E371F #657E1F
monochromatic
#070C1C #13214D #1F367E #2B4BAF #4668D1

Accessibility & contrast

On white

11.13
#1F367E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#1F367E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F367E
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F367E#FFFFFF#000000##FFFFFF
##1F367E1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004080
Deuteranopia (green-blind)
#00377D
Tritanopia (blue-blind)
#004854
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f367e;
/* rgb */ color: rgb(31, 54, 126);
/* oklch */ color: oklch(36.1% 0.125 266.6);
Tailwind
colors: {
  custom: {
    50: '#696ca4',
    500: '#1f367e',
    950: '#000000',
  },
}
SCSS
$custom: #1f367e;
$custom-light: #696ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f367e",
  "rgb": {
    "r": 31,
    "g": 54,
    "b": 126
  },
  "hsl": {
    "h": 225.474,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36066,
    "c": 0.12539,
    "h": 266.6
  },
  "luminance": 0.04436
}

Semantic roles & 50–950 ramp

primary
#1F367E
secondary
#B19848
accent
#BD44E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1F367E

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

Preview Lab → · Contrast checker → · Palette generator →

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