#1F509F#1F509F

#1F509F is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.5% C 0.139 H 259.7°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#1F509F
RGBrgb(31, 80, 159)
HSLhsl(217, 67%, 37%)
HSVhsv(217, 81%, 62%)
CMYKcmyk(80.5%, 49.7%, 0%, 37.6%)
CIE-LABlab(35.06, 13.47, -47.55)
CIE-LCHlch(35.06, 49.42, 285.81°)
OKLaboklab(44.45% -0.0249 -0.1367)
OKLCHoklch(44.45% 0.139 259.7)
XYZxyz(9.6895, 8.5307, 33.9301)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F509F #9F6E1F
analogous
#1F909F #1F509F #2E1F9F
triadic
#1F509F #9F1F50 #509F1F
tetradic
#1F509F #9F1F90 #9F6E1F #1F9F2E
square
#1F509F #9F1F90 #9F6E1F #1F9F2E
split-complementary
#1F509F #9F2E1F #909F1F
monochromatic
#0B1C39 #15366C #1F509F #296AD2 #5A8DDF

Accessibility & contrast

On white

7.76
#1F509F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#1F509F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F509F
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F509F#FFFFFF#000000##FFFFFF
##1F509F1.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2159A2
Deuteranopia (green-blind)
#004D9D
Tritanopia (blue-blind)
#006370
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #1f509f;
/* rgb */ color: rgb(31, 80, 159);
/* oklch */ color: oklch(44.5% 0.139 259.7);
Tailwind
colors: {
  custom: {
    50: '#7080bc',
    500: '#1f509f',
    950: '#000000',
  },
}
SCSS
$custom: #1f509f;
$custom-light: #7080bc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f509f",
  "rgb": {
    "r": 31,
    "g": 80,
    "b": 159
  },
  "hsl": {
    "h": 217.031,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.44452,
    "c": 0.13899,
    "h": 259.7
  },
  "luminance": 0.08532
}

Semantic roles & 50–950 ramp

primary
#1F509F
secondary
#C39A57
accent
#A83EEA
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1F509F

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

Preview Lab → · Contrast checker → · Palette generator →

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