#1F508D#1F508D

#1F508D is a dark, moderate cyan. Relative luminance 0.080; OKLCH L 43.2% C 0.114 H 255.6°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#1F508D
RGBrgb(31, 80, 141)
HSLhsl(213, 64%, 34%)
HSVhsv(213, 78%, 55%)
CMYKcmyk(78%, 43.3%, 0%, 44.7%)
CIE-LABlab(33.88, 6.29, -38.55)
CIE-LCHlch(33.88, 39.06, 279.27°)
OKLaboklab(43.16% -0.0282 -0.1103)
OKLCHoklch(43.16% 0.114 255.6)
XYZxyz(8.2397, 7.9508, 26.2945)
Luminance0.0795 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F508D #8D5C1F
analogous
#1F878D #1F508D #251F8D
triadic
#1F508D #8D1F50 #508D1F
tetradic
#1F508D #8D1F87 #8D5C1F #1F8D25
square
#1F508D #8D1F87 #8D5C1F #1F8D25
split-complementary
#1F508D #8D251F #878D1F
monochromatic
#091729 #14345B #1F508D #2A6CBF #4E8CD8

Accessibility & contrast

On white

8.11
#1F508D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#1F508D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F508D
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F508D#FFFFFF#000000##FFFFFF
##1F508D1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32558F
Deuteranopia (green-blind)
#1F4B8C
Tritanopia (blue-blind)
#005E67
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #1f508d;
/* rgb */ color: rgb(31, 80, 141);
/* oklch */ color: oklch(43.2% 0.114 255.6);
Tailwind
colors: {
  custom: {
    50: '#6b80af',
    500: '#1f508d',
    950: '#000000',
  },
}
SCSS
$custom: #1f508d;
$custom-light: #6b80af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f508d",
  "rgb": {
    "r": 31,
    "g": 80,
    "b": 141
  },
  "hsl": {
    "h": 213.273,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.43158,
    "c": 0.11382,
    "h": 255.6
  },
  "luminance": 0.07952
}

Semantic roles & 50–950 ramp

primary
#1F508D
secondary
#BB8A4D
accent
#9D41E7
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080A10
muted
#7A7C7F

Preview Lab

Preview with #1F508D

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

Preview Lab → · Contrast checker → · Palette generator →

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