#1F366F#1F366F

#1F366F is a dark, moderate blue. Relative luminance 0.041; OKLCH L 34.8% C 0.103 H 265.0°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#1F366F
RGBrgb(31, 54, 111)
HSLhsl(223, 56%, 28%)
HSVhsv(223, 72%, 44%)
CMYKcmyk(72.1%, 51.4%, 0%, 56.5%)
CIE-LABlab(23.92, 12.12, -35.76)
CIE-LCHlch(23.92, 37.75, 288.72°)
OKLaboklab(34.84% -0.009 -0.1025)
OKLCHoklch(34.84% 0.103 265)
XYZxyz(4.7525, 4.0769, 15.5723)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F366F #6F581F
analogous
#1F5E6F #1F366F #301F6F
triadic
#1F366F #6F1F36 #366F1F
tetradic
#1F366F #6F1F5E #6F581F #1F6F30
square
#1F366F #6F1F5E #6F581F #1F6F30
split-complementary
#1F366F #6F301F #5E6F1F
monochromatic
#070C18 #121F3F #1F366F #2C4D9F #3F67C9

Accessibility & contrast

On white

11.57
#1F366F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#1F366F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F366F
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F366F#FFFFFF#000000##FFFFFF
##1F366F1.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173D71
Deuteranopia (green-blind)
#02356E
Tritanopia (blue-blind)
#00434D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f366f;
/* rgb */ color: rgb(31, 54, 111);
/* oklch */ color: oklch(34.8% 0.103 265.0);
Tailwind
colors: {
  custom: {
    50: '#656c99',
    500: '#1f366f',
    950: '#000000',
  },
}
SCSS
$custom: #1f366f;
$custom-light: #656c99;
$custom-dark: #000000;
JSON
{
  "hex": "#1f366f",
  "rgb": {
    "r": 31,
    "g": 54,
    "b": 111
  },
  "hsl": {
    "h": 222.75,
    "s": 56.338,
    "l": 27.843
  },
  "oklch": {
    "l": 0.34842,
    "c": 0.10294,
    "h": 265
  },
  "luminance": 0.04077
}

Semantic roles & 50–950 ramp

primary
#1F366F
secondary
#A38847
accent
#B448E0
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #1F366F

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

Preview Lab → · Contrast checker → · Palette generator →

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