#1F5DAB#1F5DAB

#1F5DAB is a mid, vivid cyan. Relative luminance 0.111; OKLCH L 48.3% C 0.140 H 256.3°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#1F5DAB
RGBrgb(31, 93, 171)
HSLhsl(213, 69%, 40%)
HSVhsv(213, 82%, 67%)
CMYKcmyk(81.9%, 45.6%, 0%, 32.9%)
CIE-LABlab(39.68, 9.63, -47.28)
CIE-LCHlch(39.68, 48.25, 281.51°)
OKLaboklab(48.27% -0.0332 -0.1357)
OKLCHoklch(48.27% 0.14 256.3)
XYZxyz(11.8274, 11.0588, 40.0314)
Luminance0.1106 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5DAB #AB6D1F
analogous
#1FA3AB #1F5DAB #271FAB
triadic
#1F5DAB #AB1F5D #5DAB1F
tetradic
#1F5DAB #AB1FA3 #AB6D1F #1FAB27
square
#1F5DAB #AB1FA3 #AB6D1F #1FAB27
split-complementary
#1F5DAB #AB271F #A3AB1F
monochromatic
#0C2543 #164177 #1F5DAB #2E7AD9 #629BE3

Accessibility & contrast

On white

6.54
#1F5DAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#1F5DAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5DAB
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5DAB#FFFFFF#000000##FFFFFF
##1F5DAB1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3464AE
Deuteranopia (green-blind)
#1358A9
Tritanopia (blue-blind)
#00707B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #1f5dab;
/* rgb */ color: rgb(31, 93, 171);
/* oklch */ color: oklch(48.3% 0.140 256.3);
Tailwind
colors: {
  custom: {
    50: '#728ac4',
    500: '#1f5dab',
    950: '#000000',
  },
}
SCSS
$custom: #1f5dab;
$custom-light: #728ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5dab",
  "rgb": {
    "r": 31,
    "g": 93,
    "b": 171
  },
  "hsl": {
    "h": 213.429,
    "s": 69.307,
    "l": 39.608
  },
  "oklch": {
    "l": 0.48265,
    "c": 0.13968,
    "h": 256.3
  },
  "luminance": 0.1106
}

Semantic roles & 50–950 ramp

primary
#1F5DAB
secondary
#C7995E
accent
#9E3CEC
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#090B13
muted
#7B7C82

Preview Lab

Preview with #1F5DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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