#1F548F#1F548F

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

Color values

HEX#1F548F
RGBrgb(31, 84, 143)
HSLhsl(212, 64%, 34%)
HSVhsv(212, 78%, 56%)
CMYKcmyk(78.3%, 41.3%, 0%, 43.9%)
CIE-LABlab(35.23, 4.44, -37.61)
CIE-LCHlch(35.23, 37.87, 276.74°)
OKLaboklab(44.25% -0.0315 -0.1074)
OKLCHoklch(44.25% 0.112 253.7)
XYZxyz(8.6915, 8.6141, 27.1859)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F548F #8F5A1F
analogous
#1F8C8F #1F548F #221F8F
triadic
#1F548F #8F1F54 #548F1F
tetradic
#1F548F #8F1F8C #8F5A1F #1F8F22
square
#1F548F #8F1F8C #8F5A1F #1F8F22
split-complementary
#1F548F #8F221F #8C8F1F
monochromatic
#09192A #14365D #1F548F #2A72C1 #4F91D9

Accessibility & contrast

On white

7.71
#1F548F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F548F
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F548F#FFFFFF#000000##FFFFFF
##1F548F1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385891
Deuteranopia (green-blind)
#254E8E
Tritanopia (blue-blind)
#00626A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #1f548f;
/* rgb */ color: rgb(31, 84, 143);
/* oklch */ color: oklch(44.2% 0.112 253.7);
Tailwind
colors: {
  custom: {
    50: '#6c83b0',
    500: '#1f548f',
    950: '#000000',
  },
}
SCSS
$custom: #1f548f;
$custom-light: #6c83b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f548f",
  "rgb": {
    "r": 31,
    "g": 84,
    "b": 143
  },
  "hsl": {
    "h": 211.607,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.44248,
    "c": 0.11196,
    "h": 253.7
  },
  "luminance": 0.08615
}

Semantic roles & 50–950 ramp

primary
#1F548F
secondary
#BC884E
accent
#9840E7
background
#F6F8FA
surface
#ECEFF5
border
#C7CACF
text
#080A10
muted
#7A7C7F

Preview Lab

Preview with #1F548F

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

Preview Lab → · Contrast checker → · Palette generator →

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