#1F54A5#1F54A5

#1F54A5 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 45.8% C 0.142 H 259.0°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#1F54A5
RGBrgb(31, 84, 165)
HSLhsl(216, 68%, 38%)
HSVhsv(216, 81%, 65%)
CMYKcmyk(81.2%, 49.1%, 0%, 35.3%)
CIE-LABlab(36.64, 13.18, -48.60)
CIE-LCHlch(36.64, 50.35, 285.18°)
OKLaboklab(45.8% -0.0271 -0.1398)
OKLCHoklch(45.8% 0.142 259)
XYZxyz(10.5244, 9.3473, 36.8395)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F54A5 #A5701F
analogous
#1F97A5 #1F54A5 #2D1FA5
triadic
#1F54A5 #A51F54 #54A51F
tetradic
#1F54A5 #A51F97 #A5701F #1FA52D
square
#1F54A5 #A51F97 #A5701F #1FA52D
split-complementary
#1F54A5 #A52D1F #97A51F
monochromatic
#0C203E #153A71 #1F54A5 #2A6FD7 #5E92E1

Accessibility & contrast

On white

7.32
#1F54A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#1F54A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F54A5
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F54A5#FFFFFF#000000##FFFFFF
##1F54A51.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255DA8
Deuteranopia (green-blind)
#0051A3
Tritanopia (blue-blind)
#006774
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #1f54a5;
/* rgb */ color: rgb(31, 84, 165);
/* oklch */ color: oklch(45.8% 0.142 259.0);
Tailwind
colors: {
  custom: {
    50: '#7183c0',
    500: '#1f54a5',
    950: '#000000',
  },
}
SCSS
$custom: #1f54a5;
$custom-light: #7183c0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f54a5",
  "rgb": {
    "r": 31,
    "g": 84,
    "b": 165
  },
  "hsl": {
    "h": 216.269,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.45797,
    "c": 0.14235,
    "h": 259
  },
  "luminance": 0.09349
}

Semantic roles & 50–950 ramp

primary
#1F54A5
secondary
#C59B5B
accent
#A63DEB
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1F54A5

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

Preview Lab → · Contrast checker → · Palette generator →

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