#1F51AC#1F51AC

#1F51AC is a mid, vivid blue. Relative luminance 0.092; OKLCH L 45.7% C 0.156 H 261.2°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#1F51AC
RGBrgb(31, 81, 172)
HSLhsl(219, 69%, 40%)
HSVhsv(219, 82%, 67%)
CMYKcmyk(82%, 52.9%, 0%, 32.5%)
CIE-LABlab(36.28, 17.97, -53.36)
CIE-LCHlch(36.28, 56.30, 288.61°)
OKLaboklab(45.67% -0.0239 -0.1538)
OKLCHoklch(45.67% 0.156 261.2)
XYZxyz(10.9512, 9.1534, 40.2113)
Luminance0.0916 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F51AC #AC7A1F
analogous
#1F98AC #1F51AC #331FAC
triadic
#1F51AC #AC1F51 #51AC1F
tetradic
#1F51AC #AC1F98 #AC7A1F #1FAC33
square
#1F51AC #AC1F98 #AC7A1F #1FAC33
split-complementary
#1F51AC #AC331F #98AC1F
monochromatic
#0C2044 #163978 #1F51AC #2F6BD9 #6390E3

Accessibility & contrast

On white

7.42
#1F51AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F51AC
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F51AC#FFFFFF#000000##FFFFFF
##1F51AC1.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D5CAF
Deuteranopia (green-blind)
#004FAA
Tritanopia (blue-blind)
#006776
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #1f51ac;
/* rgb */ color: rgb(31, 81, 172);
/* oklch */ color: oklch(45.7% 0.156 261.2);
Tailwind
colors: {
  custom: {
    50: '#7381c5',
    500: '#1f51ac',
    950: '#000000',
  },
}
SCSS
$custom: #1f51ac;
$custom-light: #7381c5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f51ac",
  "rgb": {
    "r": 31,
    "g": 81,
    "b": 172
  },
  "hsl": {
    "h": 218.723,
    "s": 69.458,
    "l": 39.804
  },
  "oklch": {
    "l": 0.45674,
    "c": 0.15566,
    "h": 261.2
  },
  "luminance": 0.09155
}

Semantic roles & 50–950 ramp

primary
#1F51AC
secondary
#C8A35F
accent
#AE3CEC
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#090A13
muted
#7B7C82

Preview Lab

Preview with #1F51AC

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

Preview Lab → · Contrast checker → · Palette generator →

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