#1F54A8#1F54A8

#1F54A8 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.0% C 0.146 H 259.5°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#1F54A8
RGBrgb(31, 84, 168)
HSLhsl(217, 69%, 39%)
HSVhsv(217, 82%, 66%)
CMYKcmyk(81.5%, 50%, 0%, 34.1%)
CIE-LABlab(36.85, 14.37, -50.05)
CIE-LCHlch(36.85, 52.07, 286.02°)
OKLaboklab(46.02% -0.0266 -0.144)
OKLCHoklch(46.02% 0.146 259.5)
XYZxyz(10.8007, 9.4578, 38.2945)
Luminance0.0946 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F54A8 #A8731F
analogous
#1F99A8 #1F54A8 #2E1FA8
triadic
#1F54A8 #A81F54 #54A81F
tetradic
#1F54A8 #A81F99 #A8731F #1FA82E
square
#1F54A8 #A81F99 #A8731F #1FA82E
split-complementary
#1F54A8 #A82E1F #99A81F
monochromatic
#0C2041 #153A74 #1F54A8 #2C6FD8 #6092E2

Accessibility & contrast

On white

7.26
#1F54A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#1F54A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F54A8
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F54A8#FFFFFF#000000##FFFFFF
##1F54A81.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215DAB
Deuteranopia (green-blind)
#0051A6
Tritanopia (blue-blind)
#006876
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #1f54a8;
/* rgb */ color: rgb(31, 84, 168);
/* oklch */ color: oklch(46.0% 0.146 259.5);
Tailwind
colors: {
  custom: {
    50: '#7283c2',
    500: '#1f54a8',
    950: '#000000',
  },
}
SCSS
$custom: #1f54a8;
$custom-light: #7283c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f54a8",
  "rgb": {
    "r": 31,
    "g": 84,
    "b": 168
  },
  "hsl": {
    "h": 216.788,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.46022,
    "c": 0.14647,
    "h": 259.5
  },
  "luminance": 0.09459
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F54A8

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

Preview Lab → · Contrast checker → · Palette generator →

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