#1F367F#1F367F

#1F367F is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.2% C 0.127 H 266.7°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#1F367F
RGBrgb(31, 54, 127)
HSLhsl(226, 61%, 31%)
HSVhsv(226, 76%, 50%)
CMYKcmyk(75.6%, 57.5%, 0%, 50.2%)
CIE-LABlab(25.14, 18.53, -43.95)
CIE-LCHlch(25.14, 47.69, 292.87°)
OKLaboklab(36.15% -0.0074 -0.1266)
OKLCHoklch(36.15% 0.127 266.7)
XYZxyz(5.7137, 4.4613, 20.6346)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F367F #7F681F
analogous
#1F667F #1F367F #381F7F
triadic
#1F367F #7F1F36 #367F1F
tetradic
#1F367F #7F1F66 #7F681F #1F7F38
square
#1F367F #7F1F66 #7F681F #1F7F38
split-complementary
#1F367F #7F381F #667F1F
monochromatic
#070C1D #13214E #1F367F #2B4BB0 #4668D2

Accessibility & contrast

On white

11.10
#1F367F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F367F
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F367F#FFFFFF#000000##FFFFFF
##1F367F1.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004082
Deuteranopia (green-blind)
#00377E
Tritanopia (blue-blind)
#004855
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f367f;
/* rgb */ color: rgb(31, 54, 127);
/* oklch */ color: oklch(36.2% 0.127 266.7);
Tailwind
colors: {
  custom: {
    50: '#696ca5',
    500: '#1f367f',
    950: '#000000',
  },
}
SCSS
$custom: #1f367f;
$custom-light: #696ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f367f",
  "rgb": {
    "r": 31,
    "g": 54,
    "b": 127
  },
  "hsl": {
    "h": 225.625,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36151,
    "c": 0.12685,
    "h": 266.7
  },
  "luminance": 0.04462
}

Semantic roles & 50–950 ramp

primary
#1F367F
secondary
#B29948
accent
#BE44E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1F367F

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

Preview Lab → · Contrast checker → · Palette generator →

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