#1F5EA7#1F5EA7

#1F5EA7 is a mid, vivid cyan. Relative luminance 0.111; OKLCH L 48.2% C 0.133 H 254.8°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#1F5EA7
RGBrgb(31, 94, 167)
HSLhsl(212, 69%, 39%)
HSVhsv(212, 81%, 65%)
CMYKcmyk(81.4%, 43.7%, 0%, 34.5%)
CIE-LABlab(39.72, 7.40, -44.84)
CIE-LCHlch(39.72, 45.44, 279.37°)
OKLaboklab(48.22% -0.0348 -0.1285)
OKLCHoklch(48.22% 0.133 254.8)
XYZxyz(11.5402, 11.0853, 38.0832)
Luminance0.1109 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5EA7 #A7681F
analogous
#1FA2A7 #1F5EA7 #241FA7
triadic
#1F5EA7 #A71F5E #5EA71F
tetradic
#1F5EA7 #A71FA2 #A7681F #1FA724
square
#1F5EA7 #A71FA2 #A7681F #1FA724
split-complementary
#1F5EA7 #A7241F #A2A71F
monochromatic
#0C2440 #154173 #1F5EA7 #2B7BD8 #5F9BE1

Accessibility & contrast

On white

6.53
#1F5EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #1F5EA7
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5EA7#FFFFFF#000000##FFFFFF
##1F5EA71.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3964AA
Deuteranopia (green-blind)
#1E58A6
Tritanopia (blue-blind)
#006F7A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #1f5ea7;
/* rgb */ color: rgb(31, 94, 167);
/* oklch */ color: oklch(48.2% 0.133 254.8);
Tailwind
colors: {
  custom: {
    50: '#718bc1',
    500: '#1f5ea7',
    950: '#000000',
  },
}
SCSS
$custom: #1f5ea7;
$custom-light: #718bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5ea7",
  "rgb": {
    "r": 31,
    "g": 94,
    "b": 167
  },
  "hsl": {
    "h": 212.206,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.48218,
    "c": 0.13312,
    "h": 254.8
  },
  "luminance": 0.11087
}

Semantic roles & 50–950 ramp

primary
#1F5EA7
secondary
#C6955C
accent
#9A3CEC
background
#F7F8FB
surface
#EDF0F7
border
#C8CBD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #1F5EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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