#1F5BA1#1F5BA1

#1F5BA1 is a mid, vivid cyan. Relative luminance 0.103; OKLCH L 47.1% C 0.128 H 254.8°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#1F5BA1
RGBrgb(31, 91, 161)
HSLhsl(212, 68%, 38%)
HSVhsv(212, 81%, 63%)
CMYKcmyk(80.7%, 43.5%, 0%, 36.9%)
CIE-LABlab(38.46, 6.98, -43.30)
CIE-LCHlch(38.46, 43.86, 279.16°)
OKLaboklab(47.11% -0.0336 -0.124)
OKLCHoklch(47.11% 0.128 254.8)
XYZxyz(10.7368, 10.3454, 35.1423)
Luminance0.1035 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5BA1 #A1651F
analogous
#1F9CA1 #1F5BA1 #241FA1
triadic
#1F5BA1 #A11F5B #5BA11F
tetradic
#1F5BA1 #A11F9C #A1651F #1FA124
square
#1F5BA1 #A11F9C #A1651F #1FA124
split-complementary
#1F5BA1 #A1241F #9CA11F
monochromatic
#0B213A #153E6E #1F5BA1 #2978D4 #5B98DF

Accessibility & contrast

On white

6.84
#1F5BA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#1F5BA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5BA1
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5BA1#FFFFFF#000000##FFFFFF
##1F5BA11.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3861A4
Deuteranopia (green-blind)
#1F55A0
Tritanopia (blue-blind)
#006C76
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #1f5ba1;
/* rgb */ color: rgb(31, 91, 161);
/* oklch */ color: oklch(47.1% 0.128 254.8);
Tailwind
colors: {
  custom: {
    50: '#7088bd',
    500: '#1f5ba1',
    950: '#000000',
  },
}
SCSS
$custom: #1f5ba1;
$custom-light: #7088bd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5ba1",
  "rgb": {
    "r": 31,
    "g": 91,
    "b": 161
  },
  "hsl": {
    "h": 212.308,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.47113,
    "c": 0.12849,
    "h": 254.8
  },
  "luminance": 0.10347
}

Semantic roles & 50–950 ramp

primary
#1F5BA1
secondary
#C49258
accent
#9B3DEB
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #1F5BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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