#1F5A8E#1F5A8E

#1F5A8E is a mid, moderate cyan. Relative luminance 0.096; OKLCH L 45.6% C 0.104 H 248.9°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#1F5A8E
RGBrgb(31, 90, 142)
HSLhsl(208, 64%, 34%)
HSVhsv(208, 78%, 56%)
CMYKcmyk(78.2%, 36.6%, 0%, 44.3%)
CIE-LABlab(37.03, 0.16, -34.14)
CIE-LCHlch(37.03, 34.14, 270.28°)
OKLaboklab(45.64% -0.0374 -0.0972)
OKLCHoklch(45.64% 0.104 248.9)
XYZxyz(9.1019, 9.5556, 26.9506)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5A8E #8E531F
analogous
#1F8E8B #1F5A8E #1F238E
triadic
#1F5A8E #8E1F5A #5A8E1F
tetradic
#1F5A8E #8B1F8E #8E531F #238E1F
square
#1F5A8E #8B1F8E #8E531F #238E1F
split-complementary
#1F5A8E #8E1F23 #8E8B1F
monochromatic
#091A2A #143A5C #1F5A8E #2A7AC0 #4F98D9

Accessibility & contrast

On white

7.21
#1F5A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#1F5A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5A8E
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5A8E#FFFFFF#000000##FFFFFF
##1F5A8E1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#425D90
Deuteranopia (green-blind)
#32528D
Tritanopia (blue-blind)
#00666D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #1f5a8e;
/* rgb */ color: rgb(31, 90, 142);
/* oklch */ color: oklch(45.6% 0.104 248.9);
Tailwind
colors: {
  custom: {
    50: '#6c88af',
    500: '#1f5a8e',
    950: '#000000',
  },
}
SCSS
$custom: #1f5a8e;
$custom-light: #6c88af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5a8e",
  "rgb": {
    "r": 31,
    "g": 90,
    "b": 142
  },
  "hsl": {
    "h": 208.108,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.45639,
    "c": 0.10412,
    "h": 248.9
  },
  "luminance": 0.09557
}

Semantic roles & 50–950 ramp

primary
#1F5A8E
secondary
#BB814D
accent
#8F41E7
background
#F6F8FA
surface
#ECEFF4
border
#C7CACE
text
#080B10
muted
#7A7C7F

Preview Lab

Preview with #1F5A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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