#1F5DA8#1F5DA8

#1F5DA8 is a mid, vivid cyan. Relative luminance 0.109; OKLCH L 48.1% C 0.136 H 255.6°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#1F5DA8
RGBrgb(31, 93, 168)
HSLhsl(213, 69%, 39%)
HSVhsv(213, 82%, 66%)
CMYKcmyk(81.5%, 44.6%, 0%, 34.1%)
CIE-LABlab(39.49, 8.44, -45.81)
CIE-LCHlch(39.49, 46.58, 280.44°)
OKLaboklab(48.06% -0.0338 -0.1313)
OKLCHoklch(48.06% 0.136 255.6)
XYZxyz(11.5447, 10.9458, 38.5425)
Luminance0.1095 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5DA8 #A86A1F
analogous
#1FA2A8 #1F5DA8 #261FA8
triadic
#1F5DA8 #A81F5D #5DA81F
tetradic
#1F5DA8 #A81FA2 #A86A1F #1FA826
square
#1F5DA8 #A81FA2 #A86A1F #1FA826
split-complementary
#1F5DA8 #A8261F #A2A81F
monochromatic
#0C2441 #154074 #1F5DA8 #2C7AD8 #609BE2

Accessibility & contrast

On white

6.58
#1F5DA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#1F5DA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5DA8
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5DA8#FFFFFF#000000##FFFFFF
##1F5DA81.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3664AB
Deuteranopia (green-blind)
#1957A7
Tritanopia (blue-blind)
#006F7A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #1f5da8;
/* rgb */ color: rgb(31, 93, 168);
/* oklch */ color: oklch(48.1% 0.136 255.6);
Tailwind
colors: {
  custom: {
    50: '#718ac2',
    500: '#1f5da8',
    950: '#000000',
  },
}
SCSS
$custom: #1f5da8;
$custom-light: #718ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5da8",
  "rgb": {
    "r": 31,
    "g": 93,
    "b": 168
  },
  "hsl": {
    "h": 212.847,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.48056,
    "c": 0.13563,
    "h": 255.6
  },
  "luminance": 0.10947
}

Semantic roles & 50–950 ramp

primary
#1F5DA8
secondary
#C6965D
accent
#9C3CEC
background
#F7F8FC
surface
#EDF0F8
border
#C8CBD1
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #1F5DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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