#1F4187#1F4187

#1F4187 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.2% C 0.124 H 262.6°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#1F4187
RGBrgb(31, 65, 135)
HSLhsl(220, 63%, 33%)
HSVhsv(220, 77%, 53%)
CMYKcmyk(77%, 51.9%, 0%, 47.1%)
CIE-LABlab(28.95, 14.07, -42.77)
CIE-LCHlch(28.95, 45.02, 288.21°)
OKLaboklab(39.24% -0.0159 -0.123)
OKLCHoklch(39.24% 0.124 262.6)
XYZxyz(6.8270, 5.8204, 23.6806)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4187 #87651F
analogous
#1F7587 #1F4187 #311F87
triadic
#1F4187 #871F41 #41871F
tetradic
#1F4187 #871F75 #87651F #1F8731
square
#1F4187 #871F75 #87651F #1F8731
split-complementary
#1F4187 #87311F #75871F
monochromatic
#081123 #142955 #1F4187 #2A59B9 #4B78D6

Accessibility & contrast

On white

9.70
#1F4187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#1F4187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4187
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4187#FFFFFF#000000##FFFFFF
##1F41871.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16498A
Deuteranopia (green-blind)
#004086
Tritanopia (blue-blind)
#00525D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1f4187;
/* rgb */ color: rgb(31, 65, 135);
/* oklch */ color: oklch(39.2% 0.124 262.6);
Tailwind
colors: {
  custom: {
    50: '#6b75aa',
    500: '#1f4187',
    950: '#000000',
  },
}
SCSS
$custom: #1f4187;
$custom-light: #6b75aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4187",
  "rgb": {
    "r": 31,
    "g": 65,
    "b": 135
  },
  "hsl": {
    "h": 220.385,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.39235,
    "c": 0.12399,
    "h": 262.6
  },
  "luminance": 0.05821
}

Semantic roles & 50–950 ramp

primary
#1F4187
secondary
#B8944A
accent
#B042E6
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #1F4187

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

Preview Lab → · Contrast checker → · Palette generator →

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