#1F56A9#1F56A9

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

Color values

HEX#1F56A9
RGBrgb(31, 86, 169)
HSLhsl(216, 69%, 39%)
HSVhsv(216, 82%, 66%)
CMYKcmyk(81.7%, 49.1%, 0%, 33.7%)
CIE-LABlab(37.50, 13.44, -49.60)
CIE-LCHlch(37.50, 51.39, 285.16°)
OKLaboklab(46.54% -0.028 -0.1427)
OKLCHoklch(46.54% 0.145 258.9)
XYZxyz(11.0517, 9.8101, 38.8395)
Luminance0.0981 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F56A9 #A9721F
analogous
#1F9BA9 #1F56A9 #2D1FA9
triadic
#1F56A9 #A91F56 #56A91F
tetradic
#1F56A9 #A91F9B #A9721F #1FA92D
square
#1F56A9 #A91F9B #A9721F #1FA92D
split-complementary
#1F56A9 #A92D1F #9BA91F
monochromatic
#0C2142 #163C75 #1F56A9 #2D71D8 #6094E2

Accessibility & contrast

On white

7.09
#1F56A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#1F56A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F56A9
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F56A9#FFFFFF#000000##FFFFFF
##1F56A91.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255FAC
Deuteranopia (green-blind)
#0052A7
Tritanopia (blue-blind)
#006A77
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #1f56a9;
/* rgb */ color: rgb(31, 86, 169);
/* oklch */ color: oklch(46.5% 0.145 258.9);
Tailwind
colors: {
  custom: {
    50: '#7285c3',
    500: '#1f56a9',
    950: '#000000',
  },
}
SCSS
$custom: #1f56a9;
$custom-light: #7285c3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f56a9",
  "rgb": {
    "r": 31,
    "g": 86,
    "b": 169
  },
  "hsl": {
    "h": 216.087,
    "s": 69,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46541,
    "c": 0.14538,
    "h": 258.9
  },
  "luminance": 0.09811
}

Semantic roles & 50–950 ramp

primary
#1F56A9
secondary
#C79D5D
accent
#A63CEC
background
#F7F8FC
surface
#EDEFF8
border
#C8CAD1
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1F56A9

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

Preview Lab → · Contrast checker → · Palette generator →

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