#1F508F#1F508F

#1F508F is a dark, moderate cyan. Relative luminance 0.080; OKLCH L 43.3% C 0.117 H 256.2°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#1F508F
RGBrgb(31, 80, 143)
HSLhsl(214, 64%, 34%)
HSVhsv(214, 78%, 56%)
CMYKcmyk(78.3%, 44.1%, 0%, 43.9%)
CIE-LABlab(34.01, 7.08, -39.57)
CIE-LCHlch(34.01, 40.20, 280.15°)
OKLaboklab(43.3% -0.0278 -0.1133)
OKLCHoklch(43.3% 0.117 256.2)
XYZxyz(8.3898, 8.0108, 27.0853)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F508F #8F5E1F
analogous
#1F888F #1F508F #261F8F
triadic
#1F508F #8F1F50 #508F1F
tetradic
#1F508F #8F1F88 #8F5E1F #1F8F26
square
#1F508F #8F1F88 #8F5E1F #1F8F26
split-complementary
#1F508F #8F261F #888F1F
monochromatic
#09182A #14345D #1F508F #2A6CC1 #4F8CD9

Accessibility & contrast

On white

8.07
#1F508F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F508F
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F508F#FFFFFF#000000##FFFFFF
##1F508F1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f508f;
/* rgb */ color: rgb(31, 80, 143);
/* oklch */ color: oklch(43.3% 0.117 256.2);
Tailwind
colors: {
  custom: {
    50: '#6c80b0',
    500: '#1f508f',
    950: '#000000',
  },
}
SCSS
$custom: #1f508f;
$custom-light: #6c80b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f508f",
  "rgb": {
    "r": 31,
    "g": 80,
    "b": 143
  },
  "hsl": {
    "h": 213.75,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.43295,
    "c": 0.11662,
    "h": 256.2
  },
  "luminance": 0.08012
}

Semantic roles & 50–950 ramp

primary
#1F508F
secondary
#BC8C4E
accent
#9E40E7
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #1F508F

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

Preview Lab → · Contrast checker → · Palette generator →

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