#1F509A#1F509A

#1F509A is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.1% C 0.132 H 258.8°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#1F509A
RGBrgb(31, 80, 154)
HSLhsl(216, 66%, 36%)
HSVhsv(216, 80%, 60%)
CMYKcmyk(79.9%, 48.1%, 0%, 39.6%)
CIE-LABlab(34.72, 11.47, -45.09)
CIE-LCHlch(34.72, 46.53, 284.28°)
OKLaboklab(44.08% -0.0257 -0.1295)
OKLCHoklch(44.08% 0.132 258.8)
XYZxyz(9.2643, 8.3606, 31.6911)
Luminance0.0836 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F509A #9A691F
analogous
#1F8E9A #1F509A #2C1F9A
triadic
#1F509A #9A1F50 #509A1F
tetradic
#1F509A #9A1F8E #9A691F #1F9A2C
square
#1F509A #9A1F8E #9A691F #1F9A2C
split-complementary
#1F509A #9A2C1F #8E9A1F
monochromatic
#0A1B34 #153667 #1F509A #296ACD #568CDD

Accessibility & contrast

On white

7.86
#1F509A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#1F509A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F509A
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F509A#FFFFFF#000000##FFFFFF
##1F509A1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27589D
Deuteranopia (green-blind)
#014C99
Tritanopia (blue-blind)
#00626D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #1f509a;
/* rgb */ color: rgb(31, 80, 154);
/* oklch */ color: oklch(44.1% 0.132 258.8);
Tailwind
colors: {
  custom: {
    50: '#6f80b8',
    500: '#1f509a',
    950: '#000000',
  },
}
SCSS
$custom: #1f509a;
$custom-light: #6f80b8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f509a",
  "rgb": {
    "r": 31,
    "g": 80,
    "b": 154
  },
  "hsl": {
    "h": 216.098,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.44081,
    "c": 0.13203,
    "h": 258.8
  },
  "luminance": 0.08362
}

Semantic roles & 50–950 ramp

primary
#1F509A
secondary
#C19554
accent
#A53EE9
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #1F509A

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

Preview Lab → · Contrast checker → · Palette generator →

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