#1F51A8#1F51A8

#1F51A8 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.4% C 0.150 H 260.7°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#1F51A8
RGBrgb(31, 81, 168)
HSLhsl(218, 69%, 39%)
HSVhsv(218, 82%, 66%)
CMYKcmyk(81.5%, 51.8%, 0%, 34.1%)
CIE-LABlab(35.99, 16.38, -51.45)
CIE-LCHlch(35.99, 53.99, 287.66°)
OKLaboklab(45.36% -0.0244 -0.1482)
OKLCHoklch(45.36% 0.15 260.7)
XYZxyz(10.5728, 9.0020, 38.2185)
Luminance0.0900 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F51A8 #A8761F
analogous
#1F96A8 #1F51A8 #321FA8
triadic
#1F51A8 #A81F51 #51A81F
tetradic
#1F51A8 #A81F96 #A8761F #1FA832
square
#1F51A8 #A81F96 #A8761F #1FA832
split-complementary
#1F51A8 #A8321F #96A81F
monochromatic
#0C1F41 #153874 #1F51A8 #2C6BD8 #608FE2

Accessibility & contrast

On white

7.50
#1F51A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#1F51A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F51A8
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F51A8#FFFFFF#000000##FFFFFF
##1F51A81.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#175BAB
Deuteranopia (green-blind)
#004FA6
Tritanopia (blue-blind)
#006674
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #1f51a8;
/* rgb */ color: rgb(31, 81, 168);
/* oklch */ color: oklch(45.4% 0.150 260.7);
Tailwind
colors: {
  custom: {
    50: '#7281c2',
    500: '#1f51a8',
    950: '#000000',
  },
}
SCSS
$custom: #1f51a8;
$custom-light: #7281c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f51a8",
  "rgb": {
    "r": 31,
    "g": 81,
    "b": 168
  },
  "hsl": {
    "h": 218.102,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.45362,
    "c": 0.15018,
    "h": 260.7
  },
  "luminance": 0.09003
}

Semantic roles & 50–950 ramp

primary
#1F51A8
secondary
#C6A05D
accent
#AC3CEC
background
#F7F7FC
surface
#EDEEF8
border
#C8C9D1
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1F51A8

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

Preview Lab → · Contrast checker → · Palette generator →

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