#1F5271#1F5271

#1F5271 is a dark, moderate cyan. Relative luminance 0.075; OKLCH L 41.9% C 0.075 H 238.9°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#1F5271
RGBrgb(31, 82, 113)
HSLhsl(203, 57%, 28%)
HSVhsv(203, 73%, 44%)
CMYKcmyk(72.6%, 27.4%, 0%, 55.7%)
CIE-LABlab(32.96, -5.91, -22.70)
CIE-LCHlch(32.96, 23.46, 255.42°)
OKLaboklab(41.93% -0.0385 -0.064)
OKLCHoklch(41.93% 0.075 238.9)
XYZxyz(6.5618, 7.5174, 16.7248)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5271 #713E1F
analogous
#1F7167 #1F5271 #1F2971
triadic
#1F5271 #711F52 #52711F
tetradic
#1F5271 #671F71 #713E1F #29711F
square
#1F5271 #671F71 #713E1F #29711F
split-complementary
#1F5271 #711F29 #71671F
monochromatic
#071118 #122F41 #1F5271 #2C75A1 #4096CB

Accessibility & contrast

On white

8.39
#1F5271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#1F5271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5271
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5271#FFFFFF#000000##FFFFFF
##1F52711.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#445272
Deuteranopia (green-blind)
#384A70
Tritanopia (blue-blind)
#005A5D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #1f5271;
/* rgb */ color: rgb(31, 82, 113);
/* oklch */ color: oklch(41.9% 0.075 238.9);
Tailwind
colors: {
  custom: {
    50: '#66829a',
    500: '#1f5271',
    950: '#000000',
  },
}
SCSS
$custom: #1f5271;
$custom-light: #66829a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5271",
  "rgb": {
    "r": 31,
    "g": 82,
    "b": 113
  },
  "hsl": {
    "h": 202.683,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41925,
    "c": 0.07467,
    "h": 238.9
  },
  "luminance": 0.07518
}

Semantic roles & 50–950 ramp

primary
#1F5271
secondary
#A56A47
accent
#8148E0
background
#F6F7F9
surface
#EBEEF2
border
#C6C9CC
text
#060A0E
muted
#7A7C7E

Preview Lab

Preview with #1F5271

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

Preview Lab → · Contrast checker → · Palette generator →

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