#1F3587#1F3587

#1F3587 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.6% C 0.140 H 267.4°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#1F3587
RGBrgb(31, 53, 135)
HSLhsl(227, 63%, 33%)
HSVhsv(227, 77%, 53%)
CMYKcmyk(77%, 60.7%, 0%, 47.1%)
CIE-LABlab(25.52, 22.41, -48.34)
CIE-LCHlch(25.52, 53.28, 294.87°)
OKLaboklab(36.64% -0.0062 -0.1396)
OKLCHoklch(36.64% 0.14 267.4)
XYZxyz(6.2098, 4.5861, 23.4749)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3587 #87711F
analogous
#1F6987 #1F3587 #3D1F87
triadic
#1F3587 #871F35 #35871F
tetradic
#1F3587 #871F69 #87711F #1F873D
square
#1F3587 #871F69 #87711F #1F873D
split-complementary
#1F3587 #873D1F #69871F
monochromatic
#080E23 #142155 #1F3587 #2A49B9 #4B68D6

Accessibility & contrast

On white

10.95
#1F3587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#1F3587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3587
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3587#FFFFFF#000000##FFFFFF
##1F35871.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418A
Deuteranopia (green-blind)
#003885
Tritanopia (blue-blind)
#004A58
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f3587;
/* rgb */ color: rgb(31, 53, 135);
/* oklch */ color: oklch(36.6% 0.140 267.4);
Tailwind
colors: {
  custom: {
    50: '#6b6bab',
    500: '#1f3587',
    950: '#000000',
  },
}
SCSS
$custom: #1f3587;
$custom-light: #6b6bab;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3587",
  "rgb": {
    "r": 31,
    "g": 53,
    "b": 135
  },
  "hsl": {
    "h": 227.308,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.36643,
    "c": 0.1397,
    "h": 267.4
  },
  "luminance": 0.04587
}

Semantic roles & 50–950 ramp

primary
#1F3587
secondary
#B8A14A
accent
#C342E6
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #1F3587

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

Preview Lab → · Contrast checker → · Palette generator →

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