#1F54B4#1F54B4

#1F54B4 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 46.9% C 0.163 H 261.1°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#1F54B4
RGBrgb(31, 84, 180)
HSLhsl(219, 71%, 41%)
HSVhsv(219, 83%, 71%)
CMYKcmyk(82.8%, 53.3%, 0%, 29.4%)
CIE-LABlab(37.71, 19.12, -55.77)
CIE-LCHlch(37.71, 58.96, 288.93°)
OKLaboklab(46.95% -0.0251 -0.1609)
OKLCHoklch(46.95% 0.163 261.1)
XYZxyz(11.9706, 9.9258, 44.4561)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F54B4 #B47F1F
analogous
#1F9FB4 #1F54B4 #351FB4
triadic
#1F54B4 #B41F54 #54B41F
tetradic
#1F54B4 #B41F9F #B47F1F #1FB435
square
#1F54B4 #B41F9F #B47F1F #1FB435
split-complementary
#1F54B4 #B4351F #9FB41F
monochromatic
#0D234C #163C80 #1F54B4 #3470DC #6895E5

Accessibility & contrast

On white

7.03
#1F54B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#1F54B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F54B4
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F54B4#FFFFFF#000000##FFFFFF
##1F54B41.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0660B7
Deuteranopia (green-blind)
#0052B2
Tritanopia (blue-blind)
#006C7C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #1f54b4;
/* rgb */ color: rgb(31, 84, 180);
/* oklch */ color: oklch(46.9% 0.163 261.1);
Tailwind
colors: {
  custom: {
    50: '#7583cb',
    500: '#1f54b4',
    950: '#000000',
  },
}
SCSS
$custom: #1f54b4;
$custom-light: #7583cb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f54b4",
  "rgb": {
    "r": 31,
    "g": 84,
    "b": 180
  },
  "hsl": {
    "h": 218.658,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46949,
    "c": 0.1628,
    "h": 261.1
  },
  "luminance": 0.09927
}

Semantic roles & 50–950 ramp

primary
#1F54B4
secondary
#CBA664
accent
#AE3AED
background
#F7F7FC
surface
#EEEEF9
border
#C9C9D2
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #1F54B4

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

Preview Lab → · Contrast checker → · Palette generator →

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