#1F168A#1F168A

#1F168A is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.178 H 273.2°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#1F168A
RGBrgb(31, 22, 138)
HSLhsl(245, 73%, 31%)
HSVhsv(245, 84%, 54%)
CMYKcmyk(77.5%, 84.1%, 0%, 45.9%)
CIE-LABlab(18.80, 42.67, -61.28)
CIE-LCHlch(18.80, 74.67, 304.85°)
OKLaboklab(31.89% 0.0098 -0.1772)
OKLCHoklch(31.89% 0.178 273.2)
XYZxyz(5.4379, 2.6995, 24.2743)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F168A #818A16
analogous
#16478A #1F168A #59168A
triadic
#1F168A #8A1F16 #168A1F
tetradic
#1F168A #8A1647 #818A16 #168A59
square
#1F168A #8A1647 #818A16 #168A59
split-complementary
#1F168A #8A5916 #478A16
monochromatic
#070520 #130E55 #1F168A #2B1EBF #473BE0

Accessibility & contrast

On white

13.64
#1F168A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1F168A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F168A
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F168A#FFFFFF#000000##FFFFFF
##1F168A1.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338D
Deuteranopia (green-blind)
#002888
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f168a;
/* rgb */ color: rgb(31, 22, 138);
/* oklch */ color: oklch(31.9% 0.178 273.2);
Tailwind
colors: {
  custom: {
    50: '#6f57ad',
    500: '#1f168a',
    950: '#000000',
  },
}
SCSS
$custom: #1f168a;
$custom-light: #6f57ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f168a",
  "rgb": {
    "r": 31,
    "g": 22,
    "b": 138
  },
  "hsl": {
    "h": 244.655,
    "s": 72.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.31887,
    "c": 0.17752,
    "h": 273.2
  },
  "luminance": 0.027
}

Semantic roles & 50–950 ramp

primary
#1F168A
secondary
#B4BE3E
accent
#EF39E1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #1F168A

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

Preview Lab → · Contrast checker → · Palette generator →

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