#1F3752#1F3752

#1F3752 is a dark, muted cyan. Relative luminance 0.036; OKLCH L 33.1% C 0.057 H 252.5°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#1F3752
RGBrgb(31, 55, 82)
HSLhsl(212, 45%, 22%)
HSVhsv(212, 62%, 32%)
CMYKcmyk(62.2%, 32.9%, 0%, 67.8%)
CIE-LABlab(22.42, 0.02, -19.24)
CIE-LCHlch(22.42, 19.24, 270.05°)
OKLaboklab(33.09% -0.0171 -0.0542)
OKLCHoklch(33.09% 0.057 252.5)
XYZxyz(3.4537, 3.6326, 8.5002)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3752 #523A1F
analogous
#1F5152 #1F3752 #211F52
triadic
#1F3752 #521F37 #37521F
tetradic
#1F3752 #521F51 #523A1F #1F5221
square
#1F3752 #521F51 #523A1F #1F5221
split-complementary
#1F3752 #52211F #51521F
monochromatic
#080F16 #0E1926 #1F3752 #30557E #4173AB

Accessibility & contrast

On white

12.16
#1F3752 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#1F3752 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3752
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3752#FFFFFF#000000##FFFFFF
##1F37521.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C3853
Deuteranopia (green-blind)
#253351
Tritanopia (blue-blind)
#003D41
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f3752;
/* rgb */ color: rgb(31, 55, 82);
/* oklch */ color: oklch(33.1% 0.057 252.5);
Tailwind
colors: {
  custom: {
    50: '#5f6d82',
    500: '#1f3752',
    950: '#000000',
  },
}
SCSS
$custom: #1f3752;
$custom-light: #5f6d82;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3752",
  "rgb": {
    "r": 31,
    "g": 55,
    "b": 82
  },
  "hsl": {
    "h": 211.765,
    "s": 45.133,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33085,
    "c": 0.05681,
    "h": 252.5
  },
  "luminance": 0.03633
}

Semantic roles & 50–950 ramp

primary
#1F3752
secondary
#876846
accent
#9853D5
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#05070A
muted
#797A7C

Preview Lab

Preview with #1F3752

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

Preview Lab → · Contrast checker → · Palette generator →

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