#1F187A#1F187A

#1F187A is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.2% C 0.156 H 274.8°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#1F187A
RGBrgb(31, 24, 122)
HSLhsl(244, 67%, 29%)
HSVhsv(244, 80%, 48%)
CMYKcmyk(74.6%, 80.3%, 0%, 52.2%)
CIE-LABlab(17.22, 36.38, -53.75)
CIE-LCHlch(17.22, 64.90, 304.09°)
OKLaboklab(30.23% 0.0132 -0.1554)
OKLCHoklch(30.23% 0.156 274.8)
XYZxyz(4.4034, 2.3493, 18.6300)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F187A #737A18
analogous
#18427A #1F187A #50187A
triadic
#1F187A #7A1F18 #187A1F
tetradic
#1F187A #7A1842 #737A18 #187A50
square
#1F187A #7A1842 #737A18 #187A50
split-complementary
#1F187A #7A5018 #427A18
monochromatic
#06051A #120E47 #1F187A #2C22AD #4135D7

Accessibility & contrast

On white

14.29
#1F187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#1F187A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F187A
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F187A#FFFFFF#000000##FFFFFF
##1F187A1.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7D
Deuteranopia (green-blind)
#002678
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1f187a;
/* rgb */ color: rgb(31, 24, 122);
/* oklch */ color: oklch(30.2% 0.156 274.8);
Tailwind
colors: {
  custom: {
    50: '#6b57a2',
    500: '#1f187a',
    950: '#000000',
  },
}
SCSS
$custom: #1f187a;
$custom-light: #6b57a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f187a",
  "rgb": {
    "r": 31,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 244.286,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30227,
    "c": 0.15601,
    "h": 274.8
  },
  "luminance": 0.0235
}

Semantic roles & 50–950 ramp

primary
#1F187A
secondary
#A7AF3F
accent
#EA3EDE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1F187A

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

Preview Lab → · Contrast checker → · Palette generator →

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