#1F188F#1F188F

#1F188F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.7% C 0.182 H 272.5°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#1F188F
RGBrgb(31, 24, 143)
HSLhsl(244, 71%, 33%)
HSVhsv(244, 83%, 56%)
CMYKcmyk(78.3%, 83.2%, 0%, 43.9%)
CIE-LABlab(19.75, 43.30, -62.82)
CIE-LCHlch(19.75, 76.30, 304.58°)
OKLaboklab(32.72% 0.0079 -0.1818)
OKLCHoklch(32.72% 0.182 272.5)
XYZxyz(5.8480, 2.9271, 26.2381)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F188F #888F18
analogous
#184D8F #1F188F #5A188F
triadic
#1F188F #8F1F18 #188F1F
tetradic
#1F188F #8F184D #888F18 #188F5A
square
#1F188F #8F184D #888F18 #188F5A
split-complementary
#1F188F #8F5A18 #4D8F18
monochromatic
#080626 #140F5B #1F188F #2A21C3 #4B42DF

Accessibility & contrast

On white

13.24
#1F188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1F188F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F188F
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F188F#FFFFFF#000000##FFFFFF
##1F188F1.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#002A8D
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1f188f;
/* rgb */ color: rgb(31, 24, 143);
/* oklch */ color: oklch(32.7% 0.182 272.5);
Tailwind
colors: {
  custom: {
    50: '#7059b1',
    500: '#1f188f',
    950: '#000000',
  },
}
SCSS
$custom: #1f188f;
$custom-light: #7059b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f188f",
  "rgb": {
    "r": 31,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 243.529,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.32724,
    "c": 0.18193,
    "h": 272.5
  },
  "luminance": 0.02928
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F188F

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

Preview Lab → · Contrast checker → · Palette generator →

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