#1F5FAD#1F5FAD

#1F5FAD is a mid, vivid cyan. Relative luminance 0.115; OKLCH L 48.9% C 0.140 H 255.8°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#1F5FAD
RGBrgb(31, 95, 173)
HSLhsl(213, 70%, 40%)
HSVhsv(213, 82%, 68%)
CMYKcmyk(82.1%, 45.1%, 0%, 32.2%)
CIE-LABlab(40.40, 9.11, -47.31)
CIE-LCHlch(40.40, 48.18, 280.90°)
OKLaboklab(48.86% -0.0344 -0.1357)
OKLCHoklch(48.86% 0.14 255.8)
XYZxyz(12.1973, 11.4914, 41.1023)
Luminance0.1149 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5FAD #AD6D1F
analogous
#1FA6AD #1F5FAD #261FAD
triadic
#1F5FAD #AD1F5F #5FAD1F
tetradic
#1F5FAD #AD1FA6 #AD6D1F #1FAD26
square
#1F5FAD #AD1FA6 #AD6D1F #1FAD26
split-complementary
#1F5FAD #AD261F #A6AD1F
monochromatic
#0C2645 #164279 #1F5FAD #2F7CDA #639DE3

Accessibility & contrast

On white

6.37
#1F5FAD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#1F5FAD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5FAD
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5FAD#FFFFFF#000000##FFFFFF
##1F5FAD1.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3666B0
Deuteranopia (green-blind)
#1659AB
Tritanopia (blue-blind)
#00727D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #1f5fad;
/* rgb */ color: rgb(31, 95, 173);
/* oklch */ color: oklch(48.9% 0.140 255.8);
Tailwind
colors: {
  custom: {
    50: '#738bc6',
    500: '#1f5fad',
    950: '#000000',
  },
}
SCSS
$custom: #1f5fad;
$custom-light: #738bc6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5fad",
  "rgb": {
    "r": 31,
    "g": 95,
    "b": 173
  },
  "hsl": {
    "h": 212.958,
    "s": 69.608,
    "l": 40
  },
  "oklch": {
    "l": 0.4886,
    "c": 0.14002,
    "h": 255.8
  },
  "luminance": 0.11493
}

Semantic roles & 50–950 ramp

primary
#1F5FAD
secondary
#C89960
accent
#9D3BEC
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#090C13
muted
#7B7D82

Preview Lab

Preview with #1F5FAD

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

Preview Lab → · Contrast checker → · Palette generator →

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