#1F4271#1F4271

#1F4271 is a dark, moderate cyan. Relative luminance 0.054; OKLCH L 37.9% C 0.090 H 256.5°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#1F4271
RGBrgb(31, 66, 113)
HSLhsl(214, 57%, 28%)
HSVhsv(214, 73%, 44%)
CMYKcmyk(72.6%, 41.6%, 0%, 55.7%)
CIE-LABlab(27.79, 4.56, -30.84)
CIE-LCHlch(27.79, 31.18, 278.41°)
OKLaboklab(37.86% -0.021 -0.0879)
OKLCHoklch(37.86% 0.09 256.5)
XYZxyz(5.4928, 5.3794, 16.3684)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4271 #714E1F
analogous
#1F6B71 #1F4271 #251F71
triadic
#1F4271 #711F42 #42711F
tetradic
#1F4271 #711F6B #714E1F #1F7125
square
#1F4271 #711F6B #714E1F #1F7125
split-complementary
#1F4271 #71251F #6B711F
monochromatic
#070E18 #122641 #1F4271 #2C5EA1 #407BCB

Accessibility & contrast

On white

10.12
#1F4271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#1F4271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4271
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4271#FFFFFF#000000##FFFFFF
##1F42711.0010.122.0810.12
#FFFFFF10.121.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4673
Deuteranopia (green-blind)
#203E70
Tritanopia (blue-blind)
#004D54
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1f4271;
/* rgb */ color: rgb(31, 66, 113);
/* oklch */ color: oklch(37.9% 0.090 256.5);
Tailwind
colors: {
  custom: {
    50: '#65769a',
    500: '#1f4271',
    950: '#000000',
  },
}
SCSS
$custom: #1f4271;
$custom-light: #65769a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4271",
  "rgb": {
    "r": 31,
    "g": 66,
    "b": 113
  },
  "hsl": {
    "h": 214.39,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.37864,
    "c": 0.09039,
    "h": 256.5
  },
  "luminance": 0.0538
}

Semantic roles & 50–950 ramp

primary
#1F4271
secondary
#A57D47
accent
#9F48E0
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#06080E
muted
#7A7B7E

Preview Lab

Preview with #1F4271

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

Preview Lab → · Contrast checker → · Palette generator →

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