#1F56A6#1F56A6

#1F56A6 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.3% C 0.141 H 258.4°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#1F56A6
RGBrgb(31, 86, 166)
HSLhsl(216, 69%, 39%)
HSVhsv(216, 81%, 65%)
CMYKcmyk(81.3%, 48.2%, 0%, 34.9%)
CIE-LABlab(37.30, 12.25, -48.14)
CIE-LCHlch(37.30, 49.68, 284.28°)
OKLaboklab(46.32% -0.0285 -0.1384)
OKLCHoklch(46.32% 0.141 258.4)
XYZxyz(10.7733, 9.6988, 37.3732)
Luminance0.0970 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F56A6 #A66F1F
analogous
#1F99A6 #1F56A6 #2C1FA6
triadic
#1F56A6 #A61F56 #56A61F
tetradic
#1F56A6 #A61F99 #A66F1F #1FA62C
square
#1F56A6 #A61F99 #A66F1F #1FA62C
split-complementary
#1F56A6 #A62C1F #99A61F
monochromatic
#0C213F #153B72 #1F56A6 #2B71D7 #5E94E1

Accessibility & contrast

On white

7.14
#1F56A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#1F56A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F56A6
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F56A6#FFFFFF#000000##FFFFFF
##1F56A61.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295EA9
Deuteranopia (green-blind)
#0052A4
Tritanopia (blue-blind)
#006976
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #1f56a6;
/* rgb */ color: rgb(31, 86, 166);
/* oklch */ color: oklch(46.3% 0.141 258.4);
Tailwind
colors: {
  custom: {
    50: '#7185c1',
    500: '#1f56a6',
    950: '#000000',
  },
}
SCSS
$custom: #1f56a6;
$custom-light: #7185c1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f56a6",
  "rgb": {
    "r": 31,
    "g": 86,
    "b": 166
  },
  "hsl": {
    "h": 215.556,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.4632,
    "c": 0.14127,
    "h": 258.4
  },
  "luminance": 0.097
}

Semantic roles & 50–950 ramp

primary
#1F56A6
secondary
#C59A5B
accent
#A43CEB
background
#F7F8FB
surface
#EDEFF7
border
#C8CAD0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1F56A6

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

Preview Lab → · Contrast checker → · Palette generator →

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