#1F366C#1F366C

#1F366C is a dark, moderate blue. Relative luminance 0.040; OKLCH L 34.6% C 0.098 H 264.5°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#1F366C
RGBrgb(31, 54, 108)
HSLhsl(222, 55%, 27%)
HSVhsv(222, 71%, 42%)
CMYKcmyk(71.3%, 50%, 0%, 57.6%)
CIE-LABlab(23.71, 10.91, -34.17)
CIE-LCHlch(23.71, 35.87, 287.71°)
OKLaboklab(34.61% -0.0095 -0.0979)
OKLCHoklch(34.61% 0.098 264.5)
XYZxyz(4.5901, 4.0119, 14.7169)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F366C #6C551F
analogous
#1F5D6C #1F366C #2F1F6C
triadic
#1F366C #6C1F36 #366C1F
tetradic
#1F366C #6C1F5D #6C551F #1F6C2F
square
#1F366C #6C1F5D #6C551F #1F6C2F
split-complementary
#1F366C #6C2F1F #5D6C1F
monochromatic
#070C18 #111E3C #1F366C #2D4E9C #3E67C8

Accessibility & contrast

On white

11.65
#1F366C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F366C
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F366C#FFFFFF#000000##FFFFFF
##1F366C1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3C6E
Deuteranopia (green-blind)
#09356B
Tritanopia (blue-blind)
#00434B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f366c;
/* rgb */ color: rgb(31, 54, 108);
/* oklch */ color: oklch(34.6% 0.098 264.5);
Tailwind
colors: {
  custom: {
    50: '#656c96',
    500: '#1f366c',
    950: '#000000',
  },
}
SCSS
$custom: #1f366c;
$custom-light: #656c96;
$custom-dark: #000000;
JSON
{
  "hex": "#1f366c",
  "rgb": {
    "r": 31,
    "g": 54,
    "b": 108
  },
  "hsl": {
    "h": 222.078,
    "s": 55.396,
    "l": 27.255
  },
  "oklch": {
    "l": 0.34611,
    "c": 0.09835,
    "h": 264.5
  },
  "luminance": 0.04012
}

Semantic roles & 50–950 ramp

primary
#1F366C
secondary
#A08547
accent
#B249DF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06070D
muted
#7A7A7E

Preview Lab

Preview with #1F366C

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

Preview Lab → · Contrast checker → · Palette generator →

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