#1F188A#1F188A

#1F188A is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.176 H 273.0°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#1F188A
RGBrgb(31, 24, 138)
HSLhsl(244, 70%, 32%)
HSVhsv(244, 83%, 54%)
CMYKcmyk(77.5%, 82.6%, 0%, 45.9%)
CIE-LABlab(19.14, 41.68, -60.71)
CIE-LCHlch(19.14, 73.65, 304.47°)
OKLaboklab(32.12% 0.0092 -0.1757)
OKLCHoklch(32.12% 0.176 273)
XYZxyz(5.4776, 2.7790, 24.2875)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F188A #838A18
analogous
#184A8A #1F188A #58188A
triadic
#1F188A #8A1F18 #188A1F
tetradic
#1F188A #8A184A #838A18 #188A58
square
#1F188A #8A184A #838A18 #188A58
split-complementary
#1F188A #8A5818 #4A8A18
monochromatic
#080622 #130F56 #1F188A #2B21BE #493FDE

Accessibility & contrast

On white

13.50
#1F188A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#1F188A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F188A
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F188A#FFFFFF#000000##FFFFFF
##1F188A1.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348D
Deuteranopia (green-blind)
#002988
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f188a;
/* rgb */ color: rgb(31, 24, 138);
/* oklch */ color: oklch(32.1% 0.176 273.0);
Tailwind
colors: {
  custom: {
    50: '#6f58ad',
    500: '#1f188a',
    950: '#000000',
  },
}
SCSS
$custom: #1f188a;
$custom-light: #6f58ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f188a",
  "rgb": {
    "r": 31,
    "g": 24,
    "b": 138
  },
  "hsl": {
    "h": 243.684,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32121,
    "c": 0.1759,
    "h": 273
  },
  "luminance": 0.0278
}

Semantic roles & 50–950 ramp

primary
#1F188A
secondary
#B6BD40
accent
#ED3BE2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #1F188A

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

Preview Lab → · Contrast checker → · Palette generator →

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