#1F508A#1F508A

#1F508A is a dark, moderate cyan. Relative luminance 0.079; OKLCH L 43.0% C 0.110 H 254.7°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#1F508A
RGBrgb(31, 80, 138)
HSLhsl(213, 63%, 33%)
HSVhsv(213, 78%, 54%)
CMYKcmyk(77.5%, 42%, 0%, 45.9%)
CIE-LABlab(33.70, 5.10, -37.01)
CIE-LCHlch(33.70, 37.36, 277.84°)
OKLaboklab(42.95% -0.0289 -0.1057)
OKLCHoklch(42.95% 0.11 254.7)
XYZxyz(8.0195, 7.8627, 25.1348)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F508A #8A591F
analogous
#1F858A #1F508A #231F8A
triadic
#1F508A #8A1F50 #508A1F
tetradic
#1F508A #8A1F85 #8A591F #1F8A23
square
#1F508A #8A1F85 #8A591F #1F8A23
split-complementary
#1F508A #8A231F #858A1F
monochromatic
#091626 #143358 #1F508A #2A6DBC #4C8CD7

Accessibility & contrast

On white

8.16
#1F508A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#1F508A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F508A
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F508A#FFFFFF#000000##FFFFFF
##1F508A1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#34558C
Deuteranopia (green-blind)
#224B89
Tritanopia (blue-blind)
#005E66
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #1f508a;
/* rgb */ color: rgb(31, 80, 138);
/* oklch */ color: oklch(43.0% 0.110 254.7);
Tailwind
colors: {
  custom: {
    50: '#6b80ac',
    500: '#1f508a',
    950: '#000000',
  },
}
SCSS
$custom: #1f508a;
$custom-light: #6b80ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f508a",
  "rgb": {
    "r": 31,
    "g": 80,
    "b": 138
  },
  "hsl": {
    "h": 212.523,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.42954,
    "c": 0.10963,
    "h": 254.7
  },
  "luminance": 0.07864
}

Semantic roles & 50–950 ramp

primary
#1F508A
secondary
#BA874B
accent
#9B41E6
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#070A10
muted
#7A7C7F

Preview Lab

Preview with #1F508A

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

Preview Lab → · Contrast checker → · Palette generator →

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