#1F5EA6#1F5EA6

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

Color values

HEX#1F5EA6
RGBrgb(31, 94, 166)
HSLhsl(212, 69%, 39%)
HSVhsv(212, 81%, 65%)
CMYKcmyk(81.3%, 43.4%, 0%, 34.9%)
CIE-LABlab(39.66, 7.00, -44.34)
CIE-LCHlch(39.66, 44.89, 278.98°)
OKLaboklab(48.15% -0.035 -0.127)
OKLCHoklch(48.15% 0.132 254.6)
XYZxyz(11.4481, 11.0485, 37.5982)
Luminance0.1105 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5EA6 #A6671F
analogous
#1FA1A6 #1F5EA6 #231FA6
triadic
#1F5EA6 #A61F5E #5EA61F
tetradic
#1F5EA6 #A61FA1 #A6671F #1FA623
square
#1F5EA6 #A61FA1 #A6671F #1FA623
split-complementary
#1F5EA6 #A6231F #A1A61F
monochromatic
#0C243F #154172 #1F5EA6 #2B7BD7 #5E9BE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F5EA6#FFFFFF#000000##FFFFFF
##1F5EA61.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)
#3A64A9
Deuteranopia (green-blind)
#2058A5
Tritanopia (blue-blind)
#006F7A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #1f5ea6;
/* rgb */ color: rgb(31, 94, 166);
/* oklch */ color: oklch(48.1% 0.132 254.6);
Tailwind
colors: {
  custom: {
    50: '#718bc1',
    500: '#1f5ea6',
    950: '#000000',
  },
}
SCSS
$custom: #1f5ea6;
$custom-light: #718bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5ea6",
  "rgb": {
    "r": 31,
    "g": 94,
    "b": 166
  },
  "hsl": {
    "h": 212,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.4815,
    "c": 0.13177,
    "h": 254.6
  },
  "luminance": 0.1105
}

Semantic roles & 50–950 ramp

primary
#1F5EA6
secondary
#C5945B
accent
#9A3CEB
background
#F7F8FB
surface
#EDF0F7
border
#C8CBD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #1F5EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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