#1F168E#1F168E

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

Color values

HEX#1F168E
RGBrgb(31, 22, 142)
HSLhsl(245, 73%, 32%)
HSVhsv(245, 85%, 56%)
CMYKcmyk(78.2%, 84.5%, 0%, 44.3%)
CIE-LABlab(19.30, 43.94, -62.95)
CIE-LCHlch(19.30, 76.77, 304.92°)
OKLaboklab(32.38% 0.0087 -0.1821)
OKLCHoklch(32.38% 0.182 272.7)
XYZxyz(5.7328, 2.8175, 25.8276)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F168E #858E16
analogous
#16498E #1F168E #5B168E
triadic
#1F168E #8E1F16 #168E1F
tetradic
#1F168E #8E1649 #858E16 #168E5B
square
#1F168E #8E1649 #858E16 #168E5B
split-complementary
#1F168E #8E5B16 #498E16
monochromatic
#080624 #130E59 #1F168E #2B1EC3 #4A3DE1

Accessibility & contrast

On white

13.43
#1F168E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F168E
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F168E#FFFFFF#000000##FFFFFF
##1F168E1.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003491
Deuteranopia (green-blind)
#00298C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1f168e;
/* rgb */ color: rgb(31, 22, 142);
/* oklch */ color: oklch(32.4% 0.182 272.7);
Tailwind
colors: {
  custom: {
    50: '#7057b0',
    500: '#1f168e',
    950: '#000000',
  },
}
SCSS
$custom: #1f168e;
$custom-light: #7057b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f168e",
  "rgb": {
    "r": 31,
    "g": 22,
    "b": 142
  },
  "hsl": {
    "h": 244.5,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32376,
    "c": 0.1823,
    "h": 272.7
  },
  "luminance": 0.02818
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F168E

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

Preview Lab → · Contrast checker → · Palette generator →

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