#1F5EA8#1F5EA8

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

Color values

HEX#1F5EA8
RGBrgb(31, 94, 168)
HSLhsl(212, 69%, 39%)
HSVhsv(212, 82%, 66%)
CMYKcmyk(81.5%, 44%, 0%, 34.1%)
CIE-LABlab(39.79, 7.79, -45.33)
CIE-LCHlch(39.79, 46.00, 279.75°)
OKLaboklab(48.29% -0.0346 -0.1299)
OKLCHoklch(48.29% 0.134 255.1)
XYZxyz(11.6330, 11.1225, 38.5719)
Luminance0.1112 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5EA8 #A8691F
analogous
#1FA3A8 #1F5EA8 #251FA8
triadic
#1F5EA8 #A81F5E #5EA81F
tetradic
#1F5EA8 #A81FA3 #A8691F #1FA825
square
#1F5EA8 #A81FA3 #A8691F #1FA825
split-complementary
#1F5EA8 #A8251F #A3A81F
monochromatic
#0C2441 #154174 #1F5EA8 #2C7BD8 #609BE2

Accessibility & contrast

On white

6.51
#1F5EA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#1F5EA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5EA8
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5EA8#FFFFFF#000000##FFFFFF
##1F5EA81.006.513.226.51
#FFFFFF6.511.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3864AB
Deuteranopia (green-blind)
#1D58A7
Tritanopia (blue-blind)
#00707B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #1f5ea8;
/* rgb */ color: rgb(31, 94, 168);
/* oklch */ color: oklch(48.3% 0.134 255.1);
Tailwind
colors: {
  custom: {
    50: '#718bc2',
    500: '#1f5ea8',
    950: '#000000',
  },
}
SCSS
$custom: #1f5ea8;
$custom-light: #718bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5ea8",
  "rgb": {
    "r": 31,
    "g": 94,
    "b": 168
  },
  "hsl": {
    "h": 212.409,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.48286,
    "c": 0.13446,
    "h": 255.1
  },
  "luminance": 0.11124
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F5EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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