#1F518D#1F518D

#1F518D is a dark, moderate cyan. Relative luminance 0.081; OKLCH L 43.4% C 0.113 H 255.0°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#1F518D
RGBrgb(31, 81, 141)
HSLhsl(213, 64%, 34%)
HSVhsv(213, 78%, 55%)
CMYKcmyk(78%, 42.6%, 0%, 44.7%)
CIE-LABlab(34.19, 5.63, -38.06)
CIE-LCHlch(34.19, 38.47, 278.41°)
OKLaboklab(43.4% -0.0292 -0.1088)
OKLCHoklch(43.4% 0.113 255)
XYZxyz(8.3134, 8.0983, 26.3191)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F518D #8D5B1F
analogous
#1F888D #1F518D #241F8D
triadic
#1F518D #8D1F51 #518D1F
tetradic
#1F518D #8D1F88 #8D5B1F #1F8D24
square
#1F518D #8D1F88 #8D5B1F #1F8D24
split-complementary
#1F518D #8D241F #888D1F
monochromatic
#091729 #14345B #1F518D #2A6EBF #4E8DD8

Accessibility & contrast

On white

8.02
#1F518D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#1F518D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F518D
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F518D#FFFFFF#000000##FFFFFF
##1F518D1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#34568F
Deuteranopia (green-blind)
#214C8C
Tritanopia (blue-blind)
#005F68
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #1f518d;
/* rgb */ color: rgb(31, 81, 141);
/* oklch */ color: oklch(43.4% 0.113 255.0);
Tailwind
colors: {
  custom: {
    50: '#6b81af',
    500: '#1f518d',
    950: '#000000',
  },
}
SCSS
$custom: #1f518d;
$custom-light: #6b81af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f518d",
  "rgb": {
    "r": 31,
    "g": 81,
    "b": 141
  },
  "hsl": {
    "h": 212.727,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.43396,
    "c": 0.11265,
    "h": 255
  },
  "luminance": 0.08099
}

Semantic roles & 50–950 ramp

primary
#1F518D
secondary
#BB894D
accent
#9B41E7
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080A10
muted
#7A7C7F

Preview Lab

Preview with #1F518D

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

Preview Lab → · Contrast checker → · Palette generator →

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