#1F188C#1F188C

#1F188C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.4% C 0.178 H 272.8°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#1F188C
RGBrgb(31, 24, 140)
HSLhsl(244, 71%, 32%)
HSVhsv(244, 83%, 55%)
CMYKcmyk(77.9%, 82.9%, 0%, 45.1%)
CIE-LABlab(19.38, 42.33, -61.56)
CIE-LCHlch(19.38, 74.71, 304.51°)
OKLaboklab(32.36% 0.0086 -0.1781)
OKLCHoklch(32.36% 0.178 272.8)
XYZxyz(5.6237, 2.8374, 25.0571)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F188C #858C18
analogous
#184B8C #1F188C #59188C
triadic
#1F188C #8C1F18 #188C1F
tetradic
#1F188C #8C184B #858C18 #188C59
square
#1F188C #8C184B #858C18 #188C59
split-complementary
#1F188C #8C5918 #4B8C18
monochromatic
#080624 #130F58 #1F188C #2B21C0 #4A40DE

Accessibility & contrast

On white

13.40
#1F188C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F188C
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F188C#FFFFFF#000000##FFFFFF
##1F188C1.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348F
Deuteranopia (green-blind)
#00298A
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1f188c;
/* rgb */ color: rgb(31, 24, 140);
/* oklch */ color: oklch(32.4% 0.178 272.8);
Tailwind
colors: {
  custom: {
    50: '#6f58af',
    500: '#1f188c',
    950: '#000000',
  },
}
SCSS
$custom: #1f188c;
$custom-light: #6f58af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f188c",
  "rgb": {
    "r": 31,
    "g": 24,
    "b": 140
  },
  "hsl": {
    "h": 243.621,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32362,
    "c": 0.17832,
    "h": 272.8
  },
  "luminance": 0.02838
}

Semantic roles & 50–950 ramp

primary
#1F188C
secondary
#B7BF41
accent
#ED3AE3
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #1F188C

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

Preview Lab → · Contrast checker → · Palette generator →

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