#1F3E87#1F3E87

#1F3E87 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 38.6% C 0.128 H 264.0°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#1F3E87
RGBrgb(31, 62, 135)
HSLhsl(222, 63%, 33%)
HSVhsv(222, 77%, 53%)
CMYKcmyk(77%, 54.1%, 0%, 47.1%)
CIE-LABlab(28.07, 16.15, -44.19)
CIE-LCHlch(28.07, 47.05, 290.08°)
OKLaboklab(38.57% -0.0134 -0.1272)
OKLCHoklch(38.57% 0.128 264)
XYZxyz(6.6593, 5.4851, 23.6247)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3E87 #87681F
analogous
#1F7287 #1F3E87 #341F87
triadic
#1F3E87 #871F3E #3E871F
tetradic
#1F3E87 #871F72 #87681F #1F8734
square
#1F3E87 #871F72 #87681F #1F8734
split-complementary
#1F3E87 #87341F #72871F
monochromatic
#081023 #142755 #1F3E87 #2A55B9 #4B74D6

Accessibility & contrast

On white

10.01
#1F3E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#1F3E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3E87
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3E87#FFFFFF#000000##FFFFFF
##1F3E871.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A478A
Deuteranopia (green-blind)
#003E86
Tritanopia (blue-blind)
#00505C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1f3e87;
/* rgb */ color: rgb(31, 62, 135);
/* oklch */ color: oklch(38.6% 0.128 264.0);
Tailwind
colors: {
  custom: {
    50: '#6b72aa',
    500: '#1f3e87',
    950: '#000000',
  },
}
SCSS
$custom: #1f3e87;
$custom-light: #6b72aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3e87",
  "rgb": {
    "r": 31,
    "g": 62,
    "b": 135
  },
  "hsl": {
    "h": 222.115,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38565,
    "c": 0.12792,
    "h": 264
  },
  "luminance": 0.05486
}

Semantic roles & 50–950 ramp

primary
#1F3E87
secondary
#B8974A
accent
#B542E6
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #1F3E87

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

Preview Lab → · Contrast checker → · Palette generator →

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