#1F508E#1F508E

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

Color values

HEX#1F508E
RGBrgb(31, 80, 142)
HSLhsl(214, 64%, 34%)
HSVhsv(214, 78%, 56%)
CMYKcmyk(78.2%, 43.7%, 0%, 44.3%)
CIE-LABlab(33.94, 6.69, -39.06)
CIE-LCHlch(33.94, 39.63, 279.71°)
OKLaboklab(43.23% -0.028 -0.1118)
OKLCHoklch(43.23% 0.115 255.9)
XYZxyz(8.3144, 7.9807, 26.6882)
Luminance0.0798 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F508E #8E5D1F
analogous
#1F888E #1F508E #261F8E
triadic
#1F508E #8E1F50 #508E1F
tetradic
#1F508E #8E1F88 #8E5D1F #1F8E26
square
#1F508E #8E1F88 #8E5D1F #1F8E26
split-complementary
#1F508E #8E261F #888E1F
monochromatic
#09172A #14345C #1F508E #2A6CC0 #4F8CD9

Accessibility & contrast

On white

8.09
#1F508E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#1F508E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F508E
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F508E#FFFFFF#000000##FFFFFF
##1F508E1.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315590
Deuteranopia (green-blind)
#1D4B8D
Tritanopia (blue-blind)
#005F68
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #1f508e;
/* rgb */ color: rgb(31, 80, 142);
/* oklch */ color: oklch(43.2% 0.115 255.9);
Tailwind
colors: {
  custom: {
    50: '#6c80af',
    500: '#1f508e',
    950: '#000000',
  },
}
SCSS
$custom: #1f508e;
$custom-light: #6c80af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f508e",
  "rgb": {
    "r": 31,
    "g": 80,
    "b": 142
  },
  "hsl": {
    "h": 213.514,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.43226,
    "c": 0.11523,
    "h": 255.9
  },
  "luminance": 0.07982
}

Semantic roles & 50–950 ramp

primary
#1F508E
secondary
#BB8B4D
accent
#9E41E7
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080A10
muted
#7A7C7F

Preview Lab

Preview with #1F508E

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

Preview Lab → · Contrast checker → · Palette generator →

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