#1F168F#1F168F

#1F168F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.5% C 0.183 H 272.6°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#1F168F
RGBrgb(31, 22, 143)
HSLhsl(244, 73%, 32%)
HSVhsv(244, 85%, 56%)
CMYKcmyk(78.3%, 84.6%, 0%, 43.9%)
CIE-LABlab(19.42, 44.26, -63.36)
CIE-LCHlch(19.42, 77.29, 304.93°)
OKLaboklab(32.5% 0.0084 -0.1833)
OKLCHoklch(32.5% 0.183 272.6)
XYZxyz(5.8083, 2.8477, 26.2248)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F168F #868F16
analogous
#16498F #1F168F #5C168F
triadic
#1F168F #8F1F16 #168F1F
tetradic
#1F168F #8F1649 #868F16 #168F5C
square
#1F168F #8F1649 #868F16 #168F5C
split-complementary
#1F168F #8F5C16 #498F16
monochromatic
#080625 #140E5A #1F168F #2A1EC4 #4A3EE1

Accessibility & contrast

On white

13.38
#1F168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F168F
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F168F#FFFFFF#000000##FFFFFF
##1F168F1.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f168f;
/* rgb */ color: rgb(31, 22, 143);
/* oklch */ color: oklch(32.5% 0.183 272.6);
Tailwind
colors: {
  custom: {
    50: '#7058b1',
    500: '#1f168f',
    950: '#000000',
  },
}
SCSS
$custom: #1f168f;
$custom-light: #7058b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f168f",
  "rgb": {
    "r": 31,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 244.463,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.32499,
    "c": 0.18348,
    "h": 272.6
  },
  "luminance": 0.02848
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F168F

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

Preview Lab → · Contrast checker → · Palette generator →

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