#1F54A9#1F54A9

#1F54A9 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.1% C 0.148 H 259.7°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#1F54A9
RGBrgb(31, 84, 169)
HSLhsl(217, 69%, 39%)
HSVhsv(217, 82%, 66%)
CMYKcmyk(81.7%, 50.3%, 0%, 33.7%)
CIE-LABlab(36.92, 14.77, -50.53)
CIE-LCHlch(36.92, 52.65, 286.29°)
OKLaboklab(46.1% -0.0265 -0.1454)
OKLCHoklch(46.1% 0.148 259.7)
XYZxyz(10.8942, 9.4952, 38.7870)
Luminance0.0950 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F54A9 #A9741F
analogous
#1F99A9 #1F54A9 #2F1FA9
triadic
#1F54A9 #A91F54 #54A91F
tetradic
#1F54A9 #A91F99 #A9741F #1FA92F
square
#1F54A9 #A91F99 #A9741F #1FA92F
split-complementary
#1F54A9 #A92F1F #99A91F
monochromatic
#0C2142 #163A75 #1F54A9 #2D6FD8 #6092E2

Accessibility & contrast

On white

7.24
#1F54A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#1F54A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F54A9
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F54A9#FFFFFF#000000##FFFFFF
##1F54A91.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205DAC
Deuteranopia (green-blind)
#0051A7
Tritanopia (blue-blind)
#006976
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #1f54a9;
/* rgb */ color: rgb(31, 84, 169);
/* oklch */ color: oklch(46.1% 0.148 259.7);
Tailwind
colors: {
  custom: {
    50: '#7283c3',
    500: '#1f54a9',
    950: '#000000',
  },
}
SCSS
$custom: #1f54a9;
$custom-light: #7283c3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f54a9",
  "rgb": {
    "r": 31,
    "g": 84,
    "b": 169
  },
  "hsl": {
    "h": 216.957,
    "s": 69,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46097,
    "c": 0.14784,
    "h": 259.7
  },
  "luminance": 0.09497
}

Semantic roles & 50–950 ramp

primary
#1F54A9
secondary
#C79E5D
accent
#A83CEC
background
#F7F7FC
surface
#EDEEF8
border
#C8C9D1
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1F54A9

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

Preview Lab → · Contrast checker → · Palette generator →

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