#1F168B#1F168B

#1F168B is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.0% C 0.179 H 273.1°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#1F168B
RGBrgb(31, 22, 139)
HSLhsl(245, 73%, 32%)
HSVhsv(245, 84%, 55%)
CMYKcmyk(77.7%, 84.2%, 0%, 45.5%)
CIE-LABlab(18.92, 42.99, -61.69)
CIE-LCHlch(18.92, 75.20, 304.87°)
OKLaboklab(32.01% 0.0095 -0.1785)
OKLCHoklch(32.01% 0.179 273.1)
XYZxyz(5.5106, 2.7286, 24.6573)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F168B #828B16
analogous
#16488B #1F168B #5A168B
triadic
#1F168B #8B1F16 #168B1F
tetradic
#1F168B #8B1648 #828B16 #168B5A
square
#1F168B #8B1648 #828B16 #168B5A
split-complementary
#1F168B #8B5A16 #488B16
monochromatic
#070521 #130E56 #1F168B #2B1EC0 #483BE0

Accessibility & contrast

On white

13.59
#1F168B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F168B
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F168B#FFFFFF#000000##FFFFFF
##1F168B1.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338E
Deuteranopia (green-blind)
#002889
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f168b;
/* rgb */ color: rgb(31, 22, 139);
/* oklch */ color: oklch(32.0% 0.179 273.1);
Tailwind
colors: {
  custom: {
    50: '#6f57ae',
    500: '#1f168b',
    950: '#000000',
  },
}
SCSS
$custom: #1f168b;
$custom-light: #6f57ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f168b",
  "rgb": {
    "r": 31,
    "g": 22,
    "b": 139
  },
  "hsl": {
    "h": 244.615,
    "s": 72.671,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32009,
    "c": 0.17871,
    "h": 273.1
  },
  "luminance": 0.02729
}

Semantic roles & 50–950 ramp

primary
#1F168B
secondary
#B5BF3E
accent
#EF38E1
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090310
muted
#7B787F

Preview Lab

Preview with #1F168B

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

Preview Lab → · Contrast checker → · Palette generator →

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