#1F366D#1F366D

#1F366D is a dark, moderate blue. Relative luminance 0.040; OKLCH L 34.7% C 0.100 H 264.7°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#1F366D
RGBrgb(31, 54, 109)
HSLhsl(222, 56%, 27%)
HSVhsv(222, 72%, 43%)
CMYKcmyk(71.6%, 50.5%, 0%, 57.3%)
CIE-LABlab(23.78, 11.31, -34.70)
CIE-LCHlch(23.78, 36.50, 288.06°)
OKLaboklab(34.69% -0.0093 -0.0994)
OKLCHoklch(34.69% 0.1 264.7)
XYZxyz(4.6436, 4.0333, 14.9988)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F366D #6D561F
analogous
#1F5D6D #1F366D #2F1F6D
triadic
#1F366D #6D1F36 #366D1F
tetradic
#1F366D #6D1F5D #6D561F #1F6D2F
square
#1F366D #6D1F5D #6D561F #1F6D2F
split-complementary
#1F366D #6D2F1F #5D6D1F
monochromatic
#070C18 #111E3D #1F366D #2D4E9D #3E67C8

Accessibility & contrast

On white

11.62
#1F366D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#1F366D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F366D
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F366D#FFFFFF#000000##FFFFFF
##1F366D1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193C6F
Deuteranopia (green-blind)
#06356C
Tritanopia (blue-blind)
#00434C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f366d;
/* rgb */ color: rgb(31, 54, 109);
/* oklch */ color: oklch(34.7% 0.100 264.7);
Tailwind
colors: {
  custom: {
    50: '#656c97',
    500: '#1f366d',
    950: '#000000',
  },
}
SCSS
$custom: #1f366d;
$custom-light: #656c97;
$custom-dark: #000000;
JSON
{
  "hex": "#1f366d",
  "rgb": {
    "r": 31,
    "g": 54,
    "b": 109
  },
  "hsl": {
    "h": 222.308,
    "s": 55.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34687,
    "c": 0.09988,
    "h": 264.7
  },
  "luminance": 0.04034
}

Semantic roles & 50–950 ramp

primary
#1F366D
secondary
#A18647
accent
#B349DF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #1F366D

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

Preview Lab → · Contrast checker → · Palette generator →

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