#1F3487#1F3487

#1F3487 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.4% C 0.141 H 267.8°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#1F3487
RGBrgb(31, 52, 135)
HSLhsl(228, 63%, 33%)
HSVhsv(228, 77%, 53%)
CMYKcmyk(77%, 61.5%, 0%, 47.1%)
CIE-LABlab(25.25, 23.10, -48.78)
CIE-LCHlch(25.25, 53.98, 295.34°)
OKLaboklab(36.44% -0.0055 -0.1409)
OKLCHoklch(36.44% 0.141 267.8)
XYZxyz(6.1647, 4.4959, 23.4599)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3487 #87721F
analogous
#1F6887 #1F3487 #3E1F87
triadic
#1F3487 #871F34 #34871F
tetradic
#1F3487 #871F68 #87721F #1F873E
square
#1F3487 #871F68 #87721F #1F873E
split-complementary
#1F3487 #873E1F #68871F
monochromatic
#080E23 #142155 #1F3487 #2A47B9 #4B67D6

Accessibility & contrast

On white

11.06
#1F3487 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#1F3487 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3487
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3487#FFFFFF#000000##FFFFFF
##1F34871.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418A
Deuteranopia (green-blind)
#003785
Tritanopia (blue-blind)
#004958
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f3487;
/* rgb */ color: rgb(31, 52, 135);
/* oklch */ color: oklch(36.4% 0.141 267.8);
Tailwind
colors: {
  custom: {
    50: '#6b6bab',
    500: '#1f3487',
    950: '#000000',
  },
}
SCSS
$custom: #1f3487;
$custom-light: #6b6bab;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3487",
  "rgb": {
    "r": 31,
    "g": 52,
    "b": 135
  },
  "hsl": {
    "h": 227.885,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.36439,
    "c": 0.141,
    "h": 267.8
  },
  "luminance": 0.04497
}

Semantic roles & 50–950 ramp

primary
#1F3487
secondary
#B8A24A
accent
#C542E6
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #1F3487

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

Preview Lab → · Contrast checker → · Palette generator →

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