#1F168D#1F168D

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

Color values

HEX#1F168D
RGBrgb(31, 22, 141)
HSLhsl(245, 73%, 32%)
HSVhsv(245, 84%, 55%)
CMYKcmyk(78%, 84.4%, 0%, 44.7%)
CIE-LABlab(19.17, 43.63, -62.53)
CIE-LCHlch(19.17, 76.24, 304.90°)
OKLaboklab(32.25% 0.009 -0.1809)
OKLCHoklch(32.25% 0.181 272.8)
XYZxyz(5.6581, 2.7876, 25.4340)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F168D #848D16
analogous
#16498D #1F168D #5B168D
triadic
#1F168D #8D1F16 #168D1F
tetradic
#1F168D #8D1649 #848D16 #168D5B
square
#1F168D #8D1649 #848D16 #168D5B
split-complementary
#1F168D #8D5B16 #498D16
monochromatic
#080523 #130E58 #1F168D #2B1EC2 #493DE1

Accessibility & contrast

On white

13.48
#1F168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F168D
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F168D#FFFFFF#000000##FFFFFF
##1F168D1.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f168d;
/* rgb */ color: rgb(31, 22, 141);
/* oklch */ color: oklch(32.3% 0.181 272.8);
Tailwind
colors: {
  custom: {
    50: '#7057b0',
    500: '#1f168d',
    950: '#000000',
  },
}
SCSS
$custom: #1f168d;
$custom-light: #7057b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f168d",
  "rgb": {
    "r": 31,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 244.538,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32253,
    "c": 0.18111,
    "h": 272.8
  },
  "luminance": 0.02788
}

Semantic roles & 50–950 ramp

primary
#1F168D
secondary
#B7C13E
accent
#F038E2
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #1F168D

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

Preview Lab → · Contrast checker → · Palette generator →

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