#1F55A9#1F55A9

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

Color values

HEX#1F55A9
RGBrgb(31, 85, 169)
HSLhsl(217, 69%, 39%)
HSVhsv(217, 82%, 66%)
CMYKcmyk(81.7%, 49.7%, 0%, 33.7%)
CIE-LABlab(37.21, 14.11, -50.07)
CIE-LCHlch(37.21, 52.02, 285.73°)
OKLaboklab(46.32% -0.0272 -0.1441)
OKLCHoklch(46.32% 0.147 259.3)
XYZxyz(10.9724, 9.6516, 38.8131)
Luminance0.0965 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F55A9 #A9731F
analogous
#1F9AA9 #1F55A9 #2E1FA9
triadic
#1F55A9 #A91F55 #55A91F
tetradic
#1F55A9 #A91F9A #A9731F #1FA92E
square
#1F55A9 #A91F9A #A9731F #1FA92E
split-complementary
#1F55A9 #A92E1F #9AA91F
monochromatic
#0C2142 #163B75 #1F55A9 #2D70D8 #6093E2

Accessibility & contrast

On white

7.17
#1F55A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F55A9
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F55A9#FFFFFF#000000##FFFFFF
##1F55A91.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235EAC
Deuteranopia (green-blind)
#0052A7
Tritanopia (blue-blind)
#006977
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #1f55a9;
/* rgb */ color: rgb(31, 85, 169);
/* oklch */ color: oklch(46.3% 0.147 259.3);
Tailwind
colors: {
  custom: {
    50: '#7284c3',
    500: '#1f55a9',
    950: '#000000',
  },
}
SCSS
$custom: #1f55a9;
$custom-light: #7284c3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f55a9",
  "rgb": {
    "r": 31,
    "g": 85,
    "b": 169
  },
  "hsl": {
    "h": 216.522,
    "s": 69,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46319,
    "c": 0.14661,
    "h": 259.3
  },
  "luminance": 0.09653
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F55A9

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

Preview Lab → · Contrast checker → · Palette generator →

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