#1F366B#1F366B

#1F366B is a dark, moderate blue. Relative luminance 0.040; OKLCH L 34.5% C 0.097 H 264.3°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#1F366B
RGBrgb(31, 54, 107)
HSLhsl(222, 55%, 27%)
HSVhsv(222, 71%, 42%)
CMYKcmyk(71%, 49.5%, 0%, 58%)
CIE-LABlab(23.64, 10.51, -33.64)
CIE-LCHlch(23.64, 35.25, 287.36°)
OKLaboklab(34.53% -0.0096 -0.0963)
OKLCHoklch(34.53% 0.097 264.3)
XYZxyz(4.5372, 3.9907, 14.4382)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F366B #6B541F
analogous
#1F5C6B #1F366B #2E1F6B
triadic
#1F366B #6B1F36 #366B1F
tetradic
#1F366B #6B1F5C #6B541F #1F6B2E
square
#1F366B #6B1F5C #6B541F #1F6B2E
split-complementary
#1F366B #6B2E1F #5C6B1F
monochromatic
#070C18 #111E3C #1F366B #2D4E9A #3D67C7

Accessibility & contrast

On white

11.68
#1F366B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#1F366B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F366B
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F366B#FFFFFF#000000##FFFFFF
##1F366B1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3C6D
Deuteranopia (green-blind)
#0B356A
Tritanopia (blue-blind)
#00424B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f366b;
/* rgb */ color: rgb(31, 54, 107);
/* oklch */ color: oklch(34.5% 0.097 264.3);
Tailwind
colors: {
  custom: {
    50: '#646c96',
    500: '#1f366b',
    950: '#000000',
  },
}
SCSS
$custom: #1f366b;
$custom-light: #646c96;
$custom-dark: #000000;
JSON
{
  "hex": "#1f366b",
  "rgb": {
    "r": 31,
    "g": 54,
    "b": 107
  },
  "hsl": {
    "h": 221.842,
    "s": 55.072,
    "l": 27.059
  },
  "oklch": {
    "l": 0.34534,
    "c": 0.09681,
    "h": 264.3
  },
  "luminance": 0.03991
}

Semantic roles & 50–950 ramp

primary
#1F366B
secondary
#9F8447
accent
#B149DE
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06070D
muted
#7A7A7E

Preview Lab

Preview with #1F366B

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

Preview Lab → · Contrast checker → · Palette generator →

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