#1F509E#1F509E

#1F509E is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.4% C 0.138 H 259.5°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#1F509E
RGBrgb(31, 80, 158)
HSLhsl(217, 67%, 37%)
HSVhsv(217, 80%, 62%)
CMYKcmyk(80.4%, 49.4%, 0%, 38%)
CIE-LABlab(35.00, 13.07, -47.06)
CIE-LCHlch(35.00, 48.84, 285.52°)
OKLaboklab(44.38% -0.025 -0.1353)
OKLCHoklch(44.38% 0.138 259.5)
XYZxyz(9.6030, 8.4961, 33.4749)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F509E #9E6D1F
analogous
#1F909E #1F509E #2D1F9E
triadic
#1F509E #9E1F50 #509E1F
tetradic
#1F509E #9E1F90 #9E6D1F #1F9E2D
square
#1F509E #9E1F90 #9E6D1F #1F9E2D
split-complementary
#1F509E #9E2D1F #909E1F
monochromatic
#0B1C38 #15366B #1F509E #296AD1 #598CDE

Accessibility & contrast

On white

7.78
#1F509E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#1F509E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F509E
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F509E#FFFFFF#000000##FFFFFF
##1F509E1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2358A1
Deuteranopia (green-blind)
#004D9C
Tritanopia (blue-blind)
#00636F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #1f509e;
/* rgb */ color: rgb(31, 80, 158);
/* oklch */ color: oklch(44.4% 0.138 259.5);
Tailwind
colors: {
  custom: {
    50: '#6f80bb',
    500: '#1f509e',
    950: '#000000',
  },
}
SCSS
$custom: #1f509e;
$custom-light: #6f80bb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f509e",
  "rgb": {
    "r": 31,
    "g": 80,
    "b": 158
  },
  "hsl": {
    "h": 216.85,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.44377,
    "c": 0.1376,
    "h": 259.5
  },
  "luminance": 0.08497
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F509E

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

Preview Lab → · Contrast checker → · Palette generator →

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