#1F156A#1F156A

#1F156A is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.0% C 0.138 H 277.9°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#1F156A
RGBrgb(31, 21, 106)
HSLhsl(247, 67%, 25%)
HSVhsv(247, 80%, 42%)
CMYKcmyk(70.8%, 80.2%, 0%, 58.4%)
CIE-LABlab(14.78, 32.63, -47.43)
CIE-LCHlch(14.78, 57.57, 304.53°)
OKLaboklab(27.96% 0.0189 -0.137)
OKLCHoklch(27.96% 0.138 277.9)
XYZxyz(3.4339, 1.8679, 13.8125)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F156A #606A15
analogous
#15356A #1F156A #4A156A
triadic
#1F156A #6A1F15 #156A1F
tetradic
#1F156A #6A1535 #606A15 #156A4A
square
#1F156A #6A1535 #606A15 #156A4A
split-complementary
#1F156A #6A4A15 #356A15
monochromatic
#07051A #100B37 #1F156A #2E1F9D #3D29D0

Accessibility & contrast

On white

15.29
#1F156A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#1F156A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F156A
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F156A#FFFFFF#000000##FFFFFF
##1F156A1.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296C
Deuteranopia (green-blind)
#002268
Tritanopia (blue-blind)
#002E3F
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1f156a;
/* rgb */ color: rgb(31, 21, 106);
/* oklch */ color: oklch(28.0% 0.138 277.9);
Tailwind
colors: {
  custom: {
    50: '#675496',
    500: '#1f156a',
    950: '#000000',
  },
}
SCSS
$custom: #1f156a;
$custom-light: #675496;
$custom-dark: #000000;
JSON
{
  "hex": "#1f156a",
  "rgb": {
    "r": 31,
    "g": 21,
    "b": 106
  },
  "hsl": {
    "h": 247.059,
    "s": 66.929,
    "l": 24.902
  },
  "oklch": {
    "l": 0.27963,
    "c": 0.13831,
    "h": 277.9
  },
  "luminance": 0.01868
}

Semantic roles & 50–950 ramp

primary
#1F156A
secondary
#95A13A
accent
#EA3ED6
background
#F6F4F9
surface
#EBE8F2
border
#C6C4CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #1F156A

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

Preview Lab → · Contrast checker → · Palette generator →

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