#1F51A9#1F51A9

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

Color values

HEX#1F51A9
RGBrgb(31, 81, 169)
HSLhsl(218, 69%, 39%)
HSVhsv(218, 82%, 66%)
CMYKcmyk(81.7%, 52.1%, 0%, 33.7%)
CIE-LABlab(36.06, 16.78, -51.93)
CIE-LCHlch(36.06, 54.57, 287.90°)
OKLaboklab(45.44% -0.0242 -0.1496)
OKLCHoklch(45.44% 0.152 260.8)
XYZxyz(10.6663, 9.0395, 38.7110)
Luminance0.0904 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F51A9 #A9771F
analogous
#1F96A9 #1F51A9 #321FA9
triadic
#1F51A9 #A91F51 #51A91F
tetradic
#1F51A9 #A91F96 #A9771F #1FA932
square
#1F51A9 #A91F96 #A9771F #1FA932
split-complementary
#1F51A9 #A9321F #96A91F
monochromatic
#0C1F42 #163875 #1F51A9 #2D6BD8 #608FE2

Accessibility & contrast

On white

7.48
#1F51A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#1F51A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F51A9
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F51A9#FFFFFF#000000##FFFFFF
##1F51A91.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#155BAC
Deuteranopia (green-blind)
#004FA7
Tritanopia (blue-blind)
#006675
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #1f51a9;
/* rgb */ color: rgb(31, 81, 169);
/* oklch */ color: oklch(45.4% 0.152 260.8);
Tailwind
colors: {
  custom: {
    50: '#7281c3',
    500: '#1f51a9',
    950: '#000000',
  },
}
SCSS
$custom: #1f51a9;
$custom-light: #7281c3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f51a9",
  "rgb": {
    "r": 31,
    "g": 81,
    "b": 169
  },
  "hsl": {
    "h": 218.261,
    "s": 69,
    "l": 39.216
  },
  "oklch": {
    "l": 0.45439,
    "c": 0.15155,
    "h": 260.8
  },
  "luminance": 0.09041
}

Semantic roles & 50–950 ramp

primary
#1F51A9
secondary
#C7A05D
accent
#AC3CEC
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#090A13
muted
#7B7C82

Preview Lab

Preview with #1F51A9

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

Preview Lab → · Contrast checker → · Palette generator →

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