#1F509D#1F509D

#1F509D is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.3% C 0.136 H 259.4°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#1F509D
RGBrgb(31, 80, 157)
HSLhsl(217, 67%, 37%)
HSVhsv(217, 80%, 62%)
CMYKcmyk(80.3%, 49%, 0%, 38.4%)
CIE-LABlab(34.93, 12.67, -46.57)
CIE-LCHlch(34.93, 48.26, 285.22°)
OKLaboklab(44.3% -0.0252 -0.1339)
OKLCHoklch(44.3% 0.136 259.4)
XYZxyz(9.5173, 8.4618, 33.0234)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F509D #9D6C1F
analogous
#1F8F9D #1F509D #2D1F9D
triadic
#1F509D #9D1F50 #509D1F
tetradic
#1F509D #9D1F8F #9D6C1F #1F9D2D
square
#1F509D #9D1F8F #9D6C1F #1F9D2D
split-complementary
#1F509D #9D2D1F #8F9D1F
monochromatic
#0B1C37 #15366A #1F509D #296AD0 #588CDE

Accessibility & contrast

On white

7.80
#1F509D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#1F509D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F509D
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F509D#FFFFFF#000000##FFFFFF
##1F509D1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2458A0
Deuteranopia (green-blind)
#004D9B
Tritanopia (blue-blind)
#00626F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #1f509d;
/* rgb */ color: rgb(31, 80, 157);
/* oklch */ color: oklch(44.3% 0.136 259.4);
Tailwind
colors: {
  custom: {
    50: '#6f80ba',
    500: '#1f509d',
    950: '#000000',
  },
}
SCSS
$custom: #1f509d;
$custom-light: #6f80ba;
$custom-dark: #000000;
JSON
{
  "hex": "#1f509d",
  "rgb": {
    "r": 31,
    "g": 80,
    "b": 157
  },
  "hsl": {
    "h": 216.667,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.44303,
    "c": 0.13621,
    "h": 259.4
  },
  "luminance": 0.08463
}

Semantic roles & 50–950 ramp

primary
#1F509D
secondary
#C29856
accent
#A73EEA
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1F509D

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

Preview Lab → · Contrast checker → · Palette generator →

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