#1F4287#1F4287

#1F4287 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.5% C 0.123 H 262.1°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#1F4287
RGBrgb(31, 66, 135)
HSLhsl(220, 63%, 33%)
HSVhsv(220, 77%, 53%)
CMYKcmyk(77%, 51.1%, 0%, 47.1%)
CIE-LABlab(29.25, 13.38, -42.29)
CIE-LCHlch(29.25, 44.36, 287.56°)
OKLaboklab(39.46% -0.0168 -0.1215)
OKLCHoklch(39.46% 0.123 262.1)
XYZxyz(6.8849, 5.9362, 23.6999)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4287 #87641F
analogous
#1F7687 #1F4287 #301F87
triadic
#1F4287 #871F42 #42871F
tetradic
#1F4287 #871F76 #87641F #1F8730
square
#1F4287 #871F76 #87641F #1F8730
split-complementary
#1F4287 #87301F #76871F
monochromatic
#081123 #142A55 #1F4287 #2A5AB9 #4B7AD6

Accessibility & contrast

On white

9.60
#1F4287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#1F4287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4287
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4287#FFFFFF#000000##FFFFFF
##1F42871.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194A8A
Deuteranopia (green-blind)
#004086
Tritanopia (blue-blind)
#00525E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1f4287;
/* rgb */ color: rgb(31, 66, 135);
/* oklch */ color: oklch(39.5% 0.123 262.1);
Tailwind
colors: {
  custom: {
    50: '#6a75aa',
    500: '#1f4287',
    950: '#000000',
  },
}
SCSS
$custom: #1f4287;
$custom-light: #6a75aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4287",
  "rgb": {
    "r": 31,
    "g": 66,
    "b": 135
  },
  "hsl": {
    "h": 219.808,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.39461,
    "c": 0.1227,
    "h": 262.1
  },
  "luminance": 0.05937
}

Semantic roles & 50–950 ramp

primary
#1F4287
secondary
#B8934A
accent
#AF42E6
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #1F4287

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

Preview Lab → · Contrast checker → · Palette generator →

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