#1F56B3#1F56B3

#1F56B3 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.3% C 0.159 H 260.4°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#1F56B3
RGBrgb(31, 86, 179)
HSLhsl(218, 70%, 41%)
HSVhsv(218, 83%, 70%)
CMYKcmyk(82.7%, 52%, 0%, 29.8%)
CIE-LABlab(38.20, 17.40, -54.39)
CIE-LCHlch(38.20, 57.10, 287.74°)
OKLaboklab(47.3% -0.0266 -0.1567)
OKLCHoklch(47.3% 0.159 260.4)
XYZxyz(12.0266, 10.2001, 43.9740)
Luminance0.1020 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F56B3 #B37C1F
analogous
#1FA0B3 #1F56B3 #321FB3
triadic
#1F56B3 #B31F56 #56B31F
tetradic
#1F56B3 #B31FA0 #B37C1F #1FB332
square
#1F56B3 #B31FA0 #B37C1F #1FB332
split-complementary
#1F56B3 #B3321F #A0B31F
monochromatic
#0D244B #163D7F #1F56B3 #3372DC #6896E5

Accessibility & contrast

On white

6.91
#1F56B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#1F56B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F56B3
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F56B3#FFFFFF#000000##FFFFFF
##1F56B31.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1561B6
Deuteranopia (green-blind)
#0054B1
Tritanopia (blue-blind)
#006D7C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #1f56b3;
/* rgb */ color: rgb(31, 86, 179);
/* oklch */ color: oklch(47.3% 0.159 260.4);
Tailwind
colors: {
  custom: {
    50: '#7484ca',
    500: '#1f56b3',
    950: '#000000',
  },
}
SCSS
$custom: #1f56b3;
$custom-light: #7484ca;
$custom-dark: #000000;
JSON
{
  "hex": "#1f56b3",
  "rgb": {
    "r": 31,
    "g": 86,
    "b": 179
  },
  "hsl": {
    "h": 217.703,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.473,
    "c": 0.15899,
    "h": 260.4
  },
  "luminance": 0.10202
}

Semantic roles & 50–950 ramp

primary
#1F56B3
secondary
#CAA464
accent
#AB3BED
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #1F56B3

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

Preview Lab → · Contrast checker → · Palette generator →

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