#1F168C#1F168C

#1F168C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.180 H 272.9°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#1F168C
RGBrgb(31, 22, 140)
HSLhsl(245, 73%, 32%)
HSVhsv(245, 84%, 55%)
CMYKcmyk(77.9%, 84.3%, 0%, 45.1%)
CIE-LABlab(19.05, 43.31, -62.11)
CIE-LCHlch(19.05, 75.72, 304.89°)
OKLaboklab(32.13% 0.0093 -0.1797)
OKLCHoklch(32.13% 0.18 272.9)
XYZxyz(5.5840, 2.7580, 25.0439)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F168C #838C16
analogous
#16488C #1F168C #5A168C
triadic
#1F168C #8C1F16 #168C1F
tetradic
#1F168C #8C1648 #838C16 #168C5A
square
#1F168C #8C1648 #838C16 #168C5A
split-complementary
#1F168C #8C5A16 #488C16
monochromatic
#080522 #130E57 #1F168C #2B1EC1 #493CE0

Accessibility & contrast

On white

13.53
#1F168C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#1F168C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F168C
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F168C#FFFFFF#000000##FFFFFF
##1F168C1.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348F
Deuteranopia (green-blind)
#00288A
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f168c;
/* rgb */ color: rgb(31, 22, 140);
/* oklch */ color: oklch(32.1% 0.180 272.9);
Tailwind
colors: {
  custom: {
    50: '#7057af',
    500: '#1f168c',
    950: '#000000',
  },
}
SCSS
$custom: #1f168c;
$custom-light: #7057af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f168c",
  "rgb": {
    "r": 31,
    "g": 22,
    "b": 140
  },
  "hsl": {
    "h": 244.576,
    "s": 72.84,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32131,
    "c": 0.17992,
    "h": 272.9
  },
  "luminance": 0.02759
}

Semantic roles & 50–950 ramp

primary
#1F168C
secondary
#B6C03E
accent
#F038E2
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #1F168C

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

Preview Lab → · Contrast checker → · Palette generator →

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