#1F3F87#1F3F87

#1F3F87 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 38.8% C 0.127 H 263.6°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#1F3F87
RGBrgb(31, 63, 135)
HSLhsl(222, 63%, 33%)
HSVhsv(222, 77%, 53%)
CMYKcmyk(77%, 53.3%, 0%, 47.1%)
CIE-LABlab(28.37, 15.46, -43.72)
CIE-LCHlch(28.37, 46.37, 289.47°)
OKLaboklab(38.79% -0.0142 -0.1258)
OKLCHoklch(38.79% 0.127 263.6)
XYZxyz(6.7142, 5.5948, 23.6430)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3F87 #87671F
analogous
#1F7387 #1F3F87 #331F87
triadic
#1F3F87 #871F3F #3F871F
tetradic
#1F3F87 #871F73 #87671F #1F8733
square
#1F3F87 #871F73 #87671F #1F8733
split-complementary
#1F3F87 #87331F #73871F
monochromatic
#081123 #142855 #1F3F87 #2A56B9 #4B76D6

Accessibility & contrast

On white

9.91
#1F3F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#1F3F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3F87
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3F87#FFFFFF#000000##FFFFFF
##1F3F871.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f3f87;
/* rgb */ color: rgb(31, 63, 135);
/* oklch */ color: oklch(38.8% 0.127 263.6);
Tailwind
colors: {
  custom: {
    50: '#6b73aa',
    500: '#1f3f87',
    950: '#000000',
  },
}
SCSS
$custom: #1f3f87;
$custom-light: #6b73aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3f87",
  "rgb": {
    "r": 31,
    "g": 63,
    "b": 135
  },
  "hsl": {
    "h": 221.538,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38787,
    "c": 0.12661,
    "h": 263.6
  },
  "luminance": 0.05596
}

Semantic roles & 50–950 ramp

primary
#1F3F87
secondary
#B8964A
accent
#B342E6
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #1F3F87

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

Preview Lab → · Contrast checker → · Palette generator →

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