#1F5AAB#1F5AAB

#1F5AAB is a mid, vivid cyan. Relative luminance 0.105; OKLCH L 47.6% C 0.143 H 257.6°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#1F5AAB
RGBrgb(31, 90, 171)
HSLhsl(215, 69%, 40%)
HSVhsv(215, 82%, 67%)
CMYKcmyk(81.9%, 47.4%, 0%, 32.9%)
CIE-LABlab(38.80, 11.59, -48.69)
CIE-LCHlch(38.80, 50.05, 283.39°)
OKLaboklab(47.59% -0.0308 -0.1399)
OKLCHoklch(47.59% 0.143 257.6)
XYZxyz(11.5692, 10.5425, 39.9453)
Luminance0.1054 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5AAB #AB701F
analogous
#1FA0AB #1F5AAB #2A1FAB
triadic
#1F5AAB #AB1F5A #5AAB1F
tetradic
#1F5AAB #AB1FA0 #AB701F #1FAB2A
square
#1F5AAB #AB1FA0 #AB701F #1FAB2A
split-complementary
#1F5AAB #AB2A1F #A0AB1F
monochromatic
#0C2343 #163F77 #1F5AAB #2E76D9 #6298E3

Accessibility & contrast

On white

6.76
#1F5AAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#1F5AAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5AAB
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5AAB#FFFFFF#000000##FFFFFF
##1F5AAB1.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D62AE
Deuteranopia (green-blind)
#0155A9
Tritanopia (blue-blind)
#006D7A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #1f5aab;
/* rgb */ color: rgb(31, 90, 171);
/* oklch */ color: oklch(47.6% 0.143 257.6);
Tailwind
colors: {
  custom: {
    50: '#7288c4',
    500: '#1f5aab',
    950: '#000000',
  },
}
SCSS
$custom: #1f5aab;
$custom-light: #7288c4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5aab",
  "rgb": {
    "r": 31,
    "g": 90,
    "b": 171
  },
  "hsl": {
    "h": 214.714,
    "s": 69.307,
    "l": 39.608
  },
  "oklch": {
    "l": 0.47585,
    "c": 0.14326,
    "h": 257.6
  },
  "luminance": 0.10544
}

Semantic roles & 50–950 ramp

primary
#1F5AAB
secondary
#C79B5E
accent
#A23CEC
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#090B13
muted
#7B7C82

Preview Lab

Preview with #1F5AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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