#1F56AD#1F56AD

#1F56AD is a mid, vivid blue. Relative luminance 0.100; OKLCH L 46.8% C 0.151 H 259.5°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#1F56AD
RGBrgb(31, 86, 173)
HSLhsl(217, 70%, 40%)
HSVhsv(217, 82%, 68%)
CMYKcmyk(82.1%, 50.3%, 0%, 32.2%)
CIE-LABlab(37.78, 15.03, -51.53)
CIE-LCHlch(37.78, 53.67, 286.26°)
OKLaboklab(46.84% -0.0274 -0.1483)
OKLCHoklch(46.84% 0.151 259.5)
XYZxyz(11.4329, 9.9626, 40.8475)
Luminance0.0996 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F56AD #AD761F
analogous
#1F9DAD #1F56AD #2F1FAD
triadic
#1F56AD #AD1F56 #56AD1F
tetradic
#1F56AD #AD1F9D #AD761F #1FAD2F
square
#1F56AD #AD1F9D #AD761F #1FAD2F
split-complementary
#1F56AD #AD2F1F #9DAD1F
monochromatic
#0C2245 #163C79 #1F56AD #2F71DA #6395E3

Accessibility & contrast

On white

7.02
#1F56AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#1F56AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F56AD
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F56AD#FFFFFF#000000##FFFFFF
##1F56AD1.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2060B0
Deuteranopia (green-blind)
#0053AB
Tritanopia (blue-blind)
#006B79
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #1f56ad;
/* rgb */ color: rgb(31, 86, 173);
/* oklch */ color: oklch(46.8% 0.151 259.5);
Tailwind
colors: {
  custom: {
    50: '#7385c6',
    500: '#1f56ad',
    950: '#000000',
  },
}
SCSS
$custom: #1f56ad;
$custom-light: #7385c6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f56ad",
  "rgb": {
    "r": 31,
    "g": 86,
    "b": 173
  },
  "hsl": {
    "h": 216.761,
    "s": 69.608,
    "l": 40
  },
  "oklch": {
    "l": 0.46841,
    "c": 0.15084,
    "h": 259.5
  },
  "luminance": 0.09964
}

Semantic roles & 50–950 ramp

primary
#1F56AD
secondary
#C8A060
accent
#A83BEC
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#090A13
muted
#7B7C82

Preview Lab

Preview with #1F56AD

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

Preview Lab → · Contrast checker → · Palette generator →

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