#1F376B#1F376B

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

Color values

HEX#1F376B
RGBrgb(31, 55, 107)
HSLhsl(221, 55%, 27%)
HSVhsv(221, 71%, 42%)
CMYKcmyk(71%, 48.6%, 0%, 58%)
CIE-LABlab(23.95, 9.81, -33.15)
CIE-LCHlch(23.95, 34.57, 286.48°)
OKLaboklab(34.77% -0.0107 -0.0948)
OKLCHoklch(34.77% 0.095 263.6)
XYZxyz(4.5842, 4.0848, 14.4539)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F376B #6B531F
analogous
#1F5D6B #1F376B #2D1F6B
triadic
#1F376B #6B1F37 #376B1F
tetradic
#1F376B #6B1F5D #6B531F #1F6B2D
square
#1F376B #6B1F5D #6B531F #1F6B2D
split-complementary
#1F376B #6B2D1F #5D6B1F
monochromatic
#070C18 #111F3C #1F376B #2D4F9A #3D69C7

Accessibility & contrast

On white

11.56
#1F376B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F376B
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F376B#FFFFFF#000000##FFFFFF
##1F376B1.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D3D6D
Deuteranopia (green-blind)
#0E366A
Tritanopia (blue-blind)
#00434B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f376b;
/* rgb */ color: rgb(31, 55, 107);
/* oklch */ color: oklch(34.8% 0.095 263.6);
Tailwind
colors: {
  custom: {
    50: '#646d96',
    500: '#1f376b',
    950: '#000000',
  },
}
SCSS
$custom: #1f376b;
$custom-light: #646d96;
$custom-dark: #000000;
JSON
{
  "hex": "#1f376b",
  "rgb": {
    "r": 31,
    "g": 55,
    "b": 107
  },
  "hsl": {
    "h": 221.053,
    "s": 55.072,
    "l": 27.059
  },
  "oklch": {
    "l": 0.34771,
    "c": 0.09545,
    "h": 263.6
  },
  "luminance": 0.04085
}

Semantic roles & 50–950 ramp

primary
#1F376B
secondary
#9F8347
accent
#AF49DE
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06070D
muted
#7A7A7E

Preview Lab

Preview with #1F376B

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

Preview Lab → · Contrast checker → · Palette generator →

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