#1F188E#1F188E

#1F188E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.181 H 272.6°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#1F188E
RGBrgb(31, 24, 142)
HSLhsl(244, 71%, 33%)
HSVhsv(244, 83%, 56%)
CMYKcmyk(78.2%, 83.1%, 0%, 44.3%)
CIE-LABlab(19.63, 42.98, -62.40)
CIE-LCHlch(19.63, 75.77, 304.56°)
OKLaboklab(32.6% 0.0081 -0.1805)
OKLCHoklch(32.6% 0.181 272.6)
XYZxyz(5.7726, 2.8969, 25.8409)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F188E #878E18
analogous
#184C8E #1F188E #5A188E
triadic
#1F188E #8E1F18 #188E1F
tetradic
#1F188E #8E184C #878E18 #188E5A
square
#1F188E #8E184C #878E18 #188E5A
split-complementary
#1F188E #8E5A18 #4C8E18
monochromatic
#080625 #140F5A #1F188E #2A21C2 #4B41DF

Accessibility & contrast

On white

13.29
#1F188E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#1F188E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F188E
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F188E#FFFFFF#000000##FFFFFF
##1F188E1.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003591
Deuteranopia (green-blind)
#002A8C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1f188e;
/* rgb */ color: rgb(31, 24, 142);
/* oklch */ color: oklch(32.6% 0.181 272.6);
Tailwind
colors: {
  custom: {
    50: '#7059b0',
    500: '#1f188e',
    950: '#000000',
  },
}
SCSS
$custom: #1f188e;
$custom-light: #7059b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f188e",
  "rgb": {
    "r": 31,
    "g": 24,
    "b": 142
  },
  "hsl": {
    "h": 243.559,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.32603,
    "c": 0.18073,
    "h": 272.6
  },
  "luminance": 0.02898
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F188E

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

Preview Lab → · Contrast checker → · Palette generator →

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