#1F5BAB#1F5BAB

#1F5BAB is a mid, vivid cyan. Relative luminance 0.107; OKLCH L 47.8% C 0.142 H 257.2°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#1F5BAB
RGBrgb(31, 91, 171)
HSLhsl(214, 69%, 40%)
HSVhsv(214, 82%, 67%)
CMYKcmyk(81.9%, 46.8%, 0%, 32.9%)
CIE-LABlab(39.09, 10.94, -48.22)
CIE-LCHlch(39.09, 49.45, 282.78°)
OKLaboklab(47.81% -0.0316 -0.1385)
OKLCHoklch(47.81% 0.142 257.2)
XYZxyz(11.6541, 10.7123, 39.9736)
Luminance0.1071 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5BAB #AB6F1F
analogous
#1FA1AB #1F5BAB #291FAB
triadic
#1F5BAB #AB1F5B #5BAB1F
tetradic
#1F5BAB #AB1FA1 #AB6F1F #1FAB29
square
#1F5BAB #AB1FA1 #AB6F1F #1FAB29
split-complementary
#1F5BAB #AB291F #A1AB1F
monochromatic
#0C2443 #163F77 #1F5BAB #2E77D9 #6299E3

Accessibility & contrast

On white

6.68
#1F5BAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#1F5BAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5BAB
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5BAB#FFFFFF#000000##FFFFFF
##1F5BAB1.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F63AE
Deuteranopia (green-blind)
#0756A9
Tritanopia (blue-blind)
#006E7A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #1f5bab;
/* rgb */ color: rgb(31, 91, 171);
/* oklch */ color: oklch(47.8% 0.142 257.2);
Tailwind
colors: {
  custom: {
    50: '#7288c4',
    500: '#1f5bab',
    950: '#000000',
  },
}
SCSS
$custom: #1f5bab;
$custom-light: #7288c4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5bab",
  "rgb": {
    "r": 31,
    "g": 91,
    "b": 171
  },
  "hsl": {
    "h": 214.286,
    "s": 69.307,
    "l": 39.608
  },
  "oklch": {
    "l": 0.4781,
    "c": 0.14206,
    "h": 257.2
  },
  "luminance": 0.10714
}

Semantic roles & 50–950 ramp

primary
#1F5BAB
secondary
#C79A5E
accent
#A13CEC
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#090B13
muted
#7B7C82

Preview Lab

Preview with #1F5BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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