#1F56A5#1F56A5

#1F56A5 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.2% C 0.140 H 258.2°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#1F56A5
RGBrgb(31, 86, 165)
HSLhsl(215, 68%, 38%)
HSVhsv(215, 81%, 65%)
CMYKcmyk(81.2%, 47.9%, 0%, 35.3%)
CIE-LABlab(37.23, 11.85, -47.65)
CIE-LCHlch(37.23, 49.11, 283.97°)
OKLaboklab(46.25% -0.0287 -0.1369)
OKLCHoklch(46.25% 0.14 258.2)
XYZxyz(10.6819, 9.6622, 36.8920)
Luminance0.0966 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F56A5 #A56E1F
analogous
#1F99A5 #1F56A5 #2B1FA5
triadic
#1F56A5 #A51F56 #56A51F
tetradic
#1F56A5 #A51F99 #A56E1F #1FA52B
square
#1F56A5 #A51F99 #A56E1F #1FA52B
split-complementary
#1F56A5 #A52B1F #99A51F
monochromatic
#0C203E #153B71 #1F56A5 #2A71D7 #5E93E1

Accessibility & contrast

On white

7.16
#1F56A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#1F56A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F56A5
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F56A5#FFFFFF#000000##FFFFFF
##1F56A51.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5EA8
Deuteranopia (green-blind)
#0052A3
Tritanopia (blue-blind)
#006975
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #1f56a5;
/* rgb */ color: rgb(31, 86, 165);
/* oklch */ color: oklch(46.2% 0.140 258.2);
Tailwind
colors: {
  custom: {
    50: '#7185c0',
    500: '#1f56a5',
    950: '#000000',
  },
}
SCSS
$custom: #1f56a5;
$custom-light: #7185c0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f56a5",
  "rgb": {
    "r": 31,
    "g": 86,
    "b": 165
  },
  "hsl": {
    "h": 215.373,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46247,
    "c": 0.1399,
    "h": 258.2
  },
  "luminance": 0.09663
}

Semantic roles & 50–950 ramp

primary
#1F56A5
secondary
#C5995B
accent
#A43DEB
background
#F7F8FB
surface
#EDEFF7
border
#C8CAD0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1F56A5

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

Preview Lab → · Contrast checker → · Palette generator →

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