#1F367B#1F367B

#1F367B is a dark, vivid blue. Relative luminance 0.044; OKLCH L 35.8% C 0.121 H 266.4°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#1F367B
RGBrgb(31, 54, 123)
HSLhsl(225, 60%, 30%)
HSVhsv(225, 75%, 48%)
CMYKcmyk(74.8%, 56.1%, 0%, 51.8%)
CIE-LABlab(24.82, 16.93, -41.94)
CIE-LCHlch(24.82, 45.23, 291.99°)
OKLaboklab(35.81% -0.0076 -0.1207)
OKLCHoklch(35.81% 0.121 266.4)
XYZxyz(5.4581, 4.3591, 19.2888)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F367B #7B641F
analogous
#1F647B #1F367B #361F7B
triadic
#1F367B #7B1F36 #367B1F
tetradic
#1F367B #7B1F64 #7B641F #1F7B36
square
#1F367B #7B1F64 #7B641F #1F7B36
split-complementary
#1F367B #7B361F #647B1F
monochromatic
#060B19 #13214A #1F367B #2B4BAC #4467D0

Accessibility & contrast

On white

11.22
#1F367B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#1F367B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F367B
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F367B#FFFFFF#000000##FFFFFF
##1F367B1.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013F7D
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#004753
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f367b;
/* rgb */ color: rgb(31, 54, 123);
/* oklch */ color: oklch(35.8% 0.121 266.4);
Tailwind
colors: {
  custom: {
    50: '#686ca2',
    500: '#1f367b',
    950: '#000000',
  },
}
SCSS
$custom: #1f367b;
$custom-light: #686ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f367b",
  "rgb": {
    "r": 31,
    "g": 54,
    "b": 123
  },
  "hsl": {
    "h": 225,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.35812,
    "c": 0.12098,
    "h": 266.4
  },
  "luminance": 0.0436
}

Semantic roles & 50–950 ramp

primary
#1F367B
secondary
#AE9548
accent
#BB45E3
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1F367B

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

Preview Lab → · Contrast checker → · Palette generator →

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