#1F5BA6#1F5BA6

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

Color values

HEX#1F5BA6
RGBrgb(31, 91, 166)
HSLhsl(213, 69%, 39%)
HSVhsv(213, 81%, 65%)
CMYKcmyk(81.3%, 45.2%, 0%, 34.9%)
CIE-LABlab(38.77, 8.96, -45.78)
CIE-LCHlch(38.77, 46.64, 281.07°)
OKLaboklab(47.46% -0.0325 -0.1313)
OKLCHoklch(47.46% 0.135 256.1)
XYZxyz(11.1865, 10.5253, 37.5110)
Luminance0.1053 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5BA6 #A66A1F
analogous
#1F9EA6 #1F5BA6 #261FA6
triadic
#1F5BA6 #A61F5B #5BA61F
tetradic
#1F5BA6 #A61F9E #A66A1F #1FA626
square
#1F5BA6 #A61F9E #A66A1F #1FA626
split-complementary
#1F5BA6 #A6261F #9EA61F
monochromatic
#0C223F #153F72 #1F5BA6 #2B78D7 #5E98E1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F5BA6#FFFFFF#000000##FFFFFF
##1F5BA61.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)
#3462A9
Deuteranopia (green-blind)
#1656A5
Tritanopia (blue-blind)
#006D78
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #1f5ba6;
/* rgb */ color: rgb(31, 91, 166);
/* oklch */ color: oklch(47.5% 0.135 256.1);
Tailwind
colors: {
  custom: {
    50: '#7188c1',
    500: '#1f5ba6',
    950: '#000000',
  },
}
SCSS
$custom: #1f5ba6;
$custom-light: #7188c1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5ba6",
  "rgb": {
    "r": 31,
    "g": 91,
    "b": 166
  },
  "hsl": {
    "h": 213.333,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.47457,
    "c": 0.13527,
    "h": 256.1
  },
  "luminance": 0.10527
}

Semantic roles & 50–950 ramp

primary
#1F5BA6
secondary
#C5965B
accent
#9E3CEB
background
#F7F8FB
surface
#EDEFF7
border
#C8CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #1F5BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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