#1F548E#1F548E

#1F548E is a dark, moderate cyan. Relative luminance 0.086; OKLCH L 44.2% C 0.111 H 253.3°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#1F548E
RGBrgb(31, 84, 142)
HSLhsl(211, 64%, 34%)
HSVhsv(211, 78%, 56%)
CMYKcmyk(78.2%, 40.8%, 0%, 44.3%)
CIE-LABlab(35.17, 4.05, -37.10)
CIE-LCHlch(35.17, 37.32, 276.23°)
OKLaboklab(44.18% -0.0317 -0.1059)
OKLCHoklch(44.18% 0.111 253.3)
XYZxyz(8.6161, 8.5839, 26.7887)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F548E #8E591F
analogous
#1F8C8E #1F548E #211F8E
triadic
#1F548E #8E1F54 #548E1F
tetradic
#1F548E #8E1F8C #8E591F #1F8E21
square
#1F548E #8E1F8C #8E591F #1F8E21
split-complementary
#1F548E #8E211F #8C8E1F
monochromatic
#09192A #14365C #1F548E #2A72C0 #4F91D9

Accessibility & contrast

On white

7.73
#1F548E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#1F548E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F548E
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F548E#FFFFFF#000000##FFFFFF
##1F548E1.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385890
Deuteranopia (green-blind)
#264E8D
Tritanopia (blue-blind)
#00626A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #1f548e;
/* rgb */ color: rgb(31, 84, 142);
/* oklch */ color: oklch(44.2% 0.111 253.3);
Tailwind
colors: {
  custom: {
    50: '#6c83af',
    500: '#1f548e',
    950: '#000000',
  },
}
SCSS
$custom: #1f548e;
$custom-light: #6c83af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f548e",
  "rgb": {
    "r": 31,
    "g": 84,
    "b": 142
  },
  "hsl": {
    "h": 211.351,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.44182,
    "c": 0.11058,
    "h": 253.3
  },
  "luminance": 0.08585
}

Semantic roles & 50–950 ramp

primary
#1F548E
secondary
#BB874D
accent
#9841E7
background
#F6F8FA
surface
#ECEFF4
border
#C7CACE
text
#080A10
muted
#7A7C7F

Preview Lab

Preview with #1F548E

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

Preview Lab → · Contrast checker → · Palette generator →

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