#1F5FAB#1F5FAB

#1F5FAB is a mid, vivid cyan. Relative luminance 0.114; OKLCH L 48.7% C 0.137 H 255.3°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#1F5FAB
RGBrgb(31, 95, 171)
HSLhsl(213, 69%, 40%)
HSVhsv(213, 82%, 67%)
CMYKcmyk(81.9%, 44.4%, 0%, 32.9%)
CIE-LABlab(40.27, 8.33, -46.33)
CIE-LCHlch(40.27, 47.07, 280.19°)
OKLaboklab(48.72% -0.0348 -0.1328)
OKLCHoklch(48.72% 0.137 255.3)
XYZxyz(12.0052, 11.4145, 40.0907)
Luminance0.1142 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5FAB #AB6B1F
analogous
#1FA5AB #1F5FAB #251FAB
triadic
#1F5FAB #AB1F5F #5FAB1F
tetradic
#1F5FAB #AB1FA5 #AB6B1F #1FAB25
square
#1F5FAB #AB1FA5 #AB6B1F #1FAB25
split-complementary
#1F5FAB #AB251F #A5AB1F
monochromatic
#0C2543 #164277 #1F5FAB #2E7CD9 #629DE3

Accessibility & contrast

On white

6.40
#1F5FAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#1F5FAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5FAB
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5FAB#FFFFFF#000000##FFFFFF
##1F5FAB1.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3866AE
Deuteranopia (green-blind)
#1B59A9
Tritanopia (blue-blind)
#00717C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #1f5fab;
/* rgb */ color: rgb(31, 95, 171);
/* oklch */ color: oklch(48.7% 0.137 255.3);
Tailwind
colors: {
  custom: {
    50: '#728bc4',
    500: '#1f5fab',
    950: '#000000',
  },
}
SCSS
$custom: #1f5fab;
$custom-light: #728bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5fab",
  "rgb": {
    "r": 31,
    "g": 95,
    "b": 171
  },
  "hsl": {
    "h": 212.571,
    "s": 69.307,
    "l": 39.608
  },
  "oklch": {
    "l": 0.48722,
    "c": 0.13734,
    "h": 255.3
  },
  "luminance": 0.11416
}

Semantic roles & 50–950 ramp

primary
#1F5FAB
secondary
#C7975E
accent
#9B3CEC
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#090C13
muted
#7B7D82

Preview Lab

Preview with #1F5FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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