#1F509B#1F509B

#1F509B is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.2% C 0.133 H 259.0°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#1F509B
RGBrgb(31, 80, 155)
HSLhsl(216, 67%, 36%)
HSVhsv(216, 80%, 61%)
CMYKcmyk(80%, 48.4%, 0%, 39.2%)
CIE-LABlab(34.79, 11.87, -45.58)
CIE-LCHlch(34.79, 47.10, 284.60°)
OKLaboklab(44.15% -0.0255 -0.131)
OKLCHoklch(44.15% 0.133 259)
XYZxyz(9.3480, 8.3941, 32.1315)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F509B #9B6A1F
analogous
#1F8E9B #1F509B #2C1F9B
triadic
#1F509B #9B1F50 #509B1F
tetradic
#1F509B #9B1F8E #9B6A1F #1F9B2C
square
#1F509B #9B1F8E #9B6A1F #1F9B2C
split-complementary
#1F509B #9B2C1F #8E9B1F
monochromatic
#0B1B35 #153668 #1F509B #296ACE #578CDD

Accessibility & contrast

On white

7.84
#1F509B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#1F509B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F509B
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F509B#FFFFFF#000000##FFFFFF
##1F509B1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26589E
Deuteranopia (green-blind)
#004D9A
Tritanopia (blue-blind)
#00626E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #1f509b;
/* rgb */ color: rgb(31, 80, 155);
/* oklch */ color: oklch(44.2% 0.133 259.0);
Tailwind
colors: {
  custom: {
    50: '#6f80b9',
    500: '#1f509b',
    950: '#000000',
  },
}
SCSS
$custom: #1f509b;
$custom-light: #6f80b9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f509b",
  "rgb": {
    "r": 31,
    "g": 80,
    "b": 155
  },
  "hsl": {
    "h": 216.29,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.44154,
    "c": 0.13342,
    "h": 259
  },
  "luminance": 0.08395
}

Semantic roles & 50–950 ramp

primary
#1F509B
secondary
#C19655
accent
#A63EEA
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #1F509B

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

Preview Lab → · Contrast checker → · Palette generator →

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