#1F5AA8#1F5AA8

#1F5AA8 is a mid, vivid cyan. Relative luminance 0.104; OKLCH L 47.4% C 0.139 H 257.0°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#1F5AA8
RGBrgb(31, 90, 168)
HSLhsl(214, 69%, 39%)
HSVhsv(214, 82%, 66%)
CMYKcmyk(81.5%, 46.4%, 0%, 34.1%)
CIE-LABlab(38.60, 10.40, -47.23)
CIE-LCHlch(38.60, 48.36, 282.42°)
OKLaboklab(47.37% -0.0313 -0.1356)
OKLCHoklch(47.37% 0.139 257)
XYZxyz(11.2865, 10.4294, 38.4564)
Luminance0.1043 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5AA8 #A86D1F
analogous
#1F9FA8 #1F5AA8 #291FA8
triadic
#1F5AA8 #A81F5A #5AA81F
tetradic
#1F5AA8 #A81F9F #A86D1F #1FA829
square
#1F5AA8 #A81F9F #A86D1F #1FA829
split-complementary
#1F5AA8 #A8291F #9FA81F
monochromatic
#0C2341 #153E74 #1F5AA8 #2C76D8 #6098E2

Accessibility & contrast

On white

6.80
#1F5AA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#1F5AA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5AA8
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5AA8#FFFFFF#000000##FFFFFF
##1F5AA81.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3061AB
Deuteranopia (green-blind)
#0C55A6
Tritanopia (blue-blind)
#006D79
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #1f5aa8;
/* rgb */ color: rgb(31, 90, 168);
/* oklch */ color: oklch(47.4% 0.139 257.0);
Tailwind
colors: {
  custom: {
    50: '#7288c2',
    500: '#1f5aa8',
    950: '#000000',
  },
}
SCSS
$custom: #1f5aa8;
$custom-light: #7288c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5aa8",
  "rgb": {
    "r": 31,
    "g": 90,
    "b": 168
  },
  "hsl": {
    "h": 214.161,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.4737,
    "c": 0.13917,
    "h": 257
  },
  "luminance": 0.10431
}

Semantic roles & 50–950 ramp

primary
#1F5AA8
secondary
#C6995D
accent
#A03CEC
background
#F7F8FC
surface
#EDEFF8
border
#C8CAD1
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #1F5AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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