#1F54A0#1F54A0

#1F54A0 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 45.4% C 0.135 H 258.1°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#1F54A0
RGBrgb(31, 84, 160)
HSLhsl(215, 68%, 37%)
HSVhsv(215, 81%, 63%)
CMYKcmyk(80.6%, 47.5%, 0%, 37.3%)
CIE-LABlab(36.31, 11.19, -46.15)
CIE-LCHlch(36.31, 47.49, 283.63°)
OKLaboklab(45.43% -0.0279 -0.1325)
OKLCHoklch(45.43% 0.135 258.1)
XYZxyz(10.0782, 9.1688, 34.4895)
Luminance0.0917 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F54A0 #A06B1F
analogous
#1F94A0 #1F54A0 #2B1FA0
triadic
#1F54A0 #A01F54 #54A01F
tetradic
#1F54A0 #A01F94 #A06B1F #1FA02B
square
#1F54A0 #A01F94 #A06B1F #1FA02B
split-complementary
#1F54A0 #A02B1F #94A01F
monochromatic
#0B1E39 #15396D #1F54A0 #296FD3 #5A91DF

Accessibility & contrast

On white

7.41
#1F54A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#1F54A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F54A0
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F54A0#FFFFFF#000000##FFFFFF
##1F54A01.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5CA3
Deuteranopia (green-blind)
#04509E
Tritanopia (blue-blind)
#006672
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #1f54a0;
/* rgb */ color: rgb(31, 84, 160);
/* oklch */ color: oklch(45.4% 0.135 258.1);
Tailwind
colors: {
  custom: {
    50: '#7083bd',
    500: '#1f54a0',
    950: '#000000',
  },
}
SCSS
$custom: #1f54a0;
$custom-light: #7083bd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f54a0",
  "rgb": {
    "r": 31,
    "g": 84,
    "b": 160
  },
  "hsl": {
    "h": 215.349,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.4543,
    "c": 0.13545,
    "h": 258.1
  },
  "luminance": 0.0917
}

Semantic roles & 50–950 ramp

primary
#1F54A0
secondary
#C39758
accent
#A33DEA
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1F54A0

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

Preview Lab → · Contrast checker → · Palette generator →

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