#1F5EA1#1F5EA1

#1F5EA1 is a mid, vivid cyan. Relative luminance 0.109; OKLCH L 47.8% C 0.125 H 253.2°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#1F5EA1
RGBrgb(31, 94, 161)
HSLhsl(211, 68%, 38%)
HSVhsv(211, 81%, 63%)
CMYKcmyk(80.7%, 41.6%, 0%, 36.9%)
CIE-LABlab(39.36, 5.04, -41.86)
CIE-LCHlch(39.36, 42.16, 276.86°)
OKLaboklab(47.82% -0.0362 -0.1197)
OKLCHoklch(47.82% 0.125 253.2)
XYZxyz(10.9984, 10.8686, 35.2295)
Luminance0.1087 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5EA1 #A1621F
analogous
#1F9FA1 #1F5EA1 #211FA1
triadic
#1F5EA1 #A11F5E #5EA11F
tetradic
#1F5EA1 #A11F9F #A1621F #1FA121
square
#1F5EA1 #A11F9F #A1621F #1FA121
split-complementary
#1F5EA1 #A1211F #9FA11F
monochromatic
#0B223A #15406E #1F5EA1 #297CD4 #5B9BDF

Accessibility & contrast

On white

6.62
#1F5EA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#1F5EA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5EA1
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5EA1#FFFFFF#000000##FFFFFF
##1F5EA11.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D63A4
Deuteranopia (green-blind)
#2757A0
Tritanopia (blue-blind)
#006E77
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #1f5ea1;
/* rgb */ color: rgb(31, 94, 161);
/* oklch */ color: oklch(47.8% 0.125 253.2);
Tailwind
colors: {
  custom: {
    50: '#708bbd',
    500: '#1f5ea1',
    950: '#000000',
  },
}
SCSS
$custom: #1f5ea1;
$custom-light: #708bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5ea1",
  "rgb": {
    "r": 31,
    "g": 94,
    "b": 161
  },
  "hsl": {
    "h": 210.923,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.47815,
    "c": 0.12506,
    "h": 253.2
  },
  "luminance": 0.1087
}

Semantic roles & 50–950 ramp

primary
#1F5EA1
secondary
#C49058
accent
#973DEB
background
#F7F8FB
surface
#EDF0F6
border
#C8CBD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #1F5EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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