#1F56A8#1F56A8

#1F56A8 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.5% C 0.144 H 258.7°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#1F56A8
RGBrgb(31, 86, 168)
HSLhsl(216, 69%, 39%)
HSVhsv(216, 82%, 66%)
CMYKcmyk(81.5%, 48.8%, 0%, 34.1%)
CIE-LABlab(37.43, 13.05, -49.12)
CIE-LCHlch(37.43, 50.82, 284.87°)
OKLaboklab(46.47% -0.0282 -0.1412)
OKLCHoklch(46.47% 0.144 258.7)
XYZxyz(10.9582, 9.7727, 38.3470)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F56A8 #A8711F
analogous
#1F9BA8 #1F56A8 #2C1FA8
triadic
#1F56A8 #A81F56 #56A81F
tetradic
#1F56A8 #A81F9B #A8711F #1FA82C
square
#1F56A8 #A81F9B #A8711F #1FA82C
split-complementary
#1F56A8 #A82C1F #9BA81F
monochromatic
#0C2141 #153C74 #1F56A8 #2C71D8 #6094E2

Accessibility & contrast

On white

7.11
#1F56A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#1F56A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F56A8
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F56A8#FFFFFF#000000##FFFFFF
##1F56A81.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265FAB
Deuteranopia (green-blind)
#0052A6
Tritanopia (blue-blind)
#006A77
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #1f56a8;
/* rgb */ color: rgb(31, 86, 168);
/* oklch */ color: oklch(46.5% 0.144 258.7);
Tailwind
colors: {
  custom: {
    50: '#7285c2',
    500: '#1f56a8',
    950: '#000000',
  },
}
SCSS
$custom: #1f56a8;
$custom-light: #7285c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f56a8",
  "rgb": {
    "r": 31,
    "g": 86,
    "b": 168
  },
  "hsl": {
    "h": 215.912,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.46467,
    "c": 0.14401,
    "h": 258.7
  },
  "luminance": 0.09774
}

Semantic roles & 50–950 ramp

primary
#1F56A8
secondary
#C69C5D
accent
#A53CEC
background
#F7F8FC
surface
#EDEFF8
border
#C8CAD1
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1F56A8

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

Preview Lab → · Contrast checker → · Palette generator →

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