#1F508C#1F508C

#1F508C is a dark, moderate cyan. Relative luminance 0.079; OKLCH L 43.1% C 0.112 H 255.3°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#1F508C
RGBrgb(31, 80, 140)
HSLhsl(213, 64%, 34%)
HSVhsv(213, 78%, 55%)
CMYKcmyk(77.9%, 42.9%, 0%, 45.1%)
CIE-LABlab(33.82, 5.89, -38.03)
CIE-LCHlch(33.82, 38.49, 278.80°)
OKLaboklab(43.09% -0.0285 -0.1088)
OKLCHoklch(43.09% 0.112 255.3)
XYZxyz(8.1656, 7.9211, 25.9044)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F508C #8C5B1F
analogous
#1F868C #1F508C #251F8C
triadic
#1F508C #8C1F50 #508C1F
tetradic
#1F508C #8C1F86 #8C5B1F #1F8C25
square
#1F508C #8C1F86 #8C5B1F #1F8C25
split-complementary
#1F508C #8C251F #868C1F
monochromatic
#091728 #14335A #1F508C #2A6DBE #4E8CD8

Accessibility & contrast

On white

8.13
#1F508C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#1F508C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F508C
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F508C#FFFFFF#000000##FFFFFF
##1F508C1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#33558E
Deuteranopia (green-blind)
#204B8B
Tritanopia (blue-blind)
#005E67
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #1f508c;
/* rgb */ color: rgb(31, 80, 140);
/* oklch */ color: oklch(43.1% 0.112 255.3);
Tailwind
colors: {
  custom: {
    50: '#6b80ae',
    500: '#1f508c',
    950: '#000000',
  },
}
SCSS
$custom: #1f508c;
$custom-light: #6b80ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f508c",
  "rgb": {
    "r": 31,
    "g": 80,
    "b": 140
  },
  "hsl": {
    "h": 213.028,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.43089,
    "c": 0.11242,
    "h": 255.3
  },
  "luminance": 0.07922
}

Semantic roles & 50–950 ramp

primary
#1F508C
secondary
#BB894C
accent
#9C41E7
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080A10
muted
#7A7C7F

Preview Lab

Preview with #1F508C

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

Preview Lab → · Contrast checker → · Palette generator →

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