#1F188D#1F188D

#1F188D is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.180 H 272.7°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#1F188D
RGBrgb(31, 24, 141)
HSLhsl(244, 71%, 32%)
HSVhsv(244, 83%, 55%)
CMYKcmyk(78%, 83%, 0%, 44.7%)
CIE-LABlab(19.50, 42.65, -61.98)
CIE-LCHlch(19.50, 75.24, 304.53°)
OKLaboklab(32.48% 0.0084 -0.1793)
OKLCHoklch(32.48% 0.18 272.7)
XYZxyz(5.6978, 2.8671, 25.4472)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F188D #868D18
analogous
#184B8D #1F188D #5A188D
triadic
#1F188D #8D1F18 #188D1F
tetradic
#1F188D #8D184B #868D18 #188D5A
square
#1F188D #8D184B #868D18 #188D5A
split-complementary
#1F188D #8D5A18 #4B8D18
monochromatic
#080624 #140F59 #1F188D #2A21C1 #4A41DF

Accessibility & contrast

On white

13.35
#1F188D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1F188D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F188D
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F188D#FFFFFF#000000##FFFFFF
##1F188D1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003590
Deuteranopia (green-blind)
#00298B
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1f188d;
/* rgb */ color: rgb(31, 24, 141);
/* oklch */ color: oklch(32.5% 0.180 272.7);
Tailwind
colors: {
  custom: {
    50: '#7058b0',
    500: '#1f188d',
    950: '#000000',
  },
}
SCSS
$custom: #1f188d;
$custom-light: #7058b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f188d",
  "rgb": {
    "r": 31,
    "g": 24,
    "b": 141
  },
  "hsl": {
    "h": 243.59,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.32482,
    "c": 0.17953,
    "h": 272.7
  },
  "luminance": 0.02868
}

Semantic roles & 50–950 ramp

primary
#1F188D
secondary
#B8BF42
accent
#EE3AE3
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F188D

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

Preview Lab → · Contrast checker → · Palette generator →

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