#1F156B#1F156B

#1F156B is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.1% C 0.140 H 277.7°. Best body text is #FFFFFF at 15.24:1 contrast (WCAG AA passes).

Color values

HEX#1F156B
RGBrgb(31, 21, 107)
HSLhsl(247, 67%, 25%)
HSVhsv(247, 80%, 42%)
CMYKcmyk(71%, 80.4%, 0%, 58%)
CIE-LABlab(14.89, 32.97, -47.89)
CIE-LCHlch(14.89, 58.14, 304.54°)
OKLaboklab(28.08% 0.0187 -0.1384)
OKLCHoklch(28.08% 0.14 277.7)
XYZxyz(3.4862, 1.8889, 14.0879)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F156B #616B15
analogous
#15366B #1F156B #4A156B
triadic
#1F156B #6B1F15 #156B1F
tetradic
#1F156B #6B1536 #616B15 #156B4A
square
#1F156B #6B1536 #616B15 #156B4A
split-complementary
#1F156B #6B4A15 #366B15
monochromatic
#07051A #100B38 #1F156B #2E1F9E #3D29D1

Accessibility & contrast

On white

15.24
#1F156B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#1F156B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F156B
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F156B#FFFFFF#000000##FFFFFF
##1F156B1.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f156b;
/* rgb */ color: rgb(31, 21, 107);
/* oklch */ color: oklch(28.1% 0.140 277.7);
Tailwind
colors: {
  custom: {
    50: '#675496',
    500: '#1f156b',
    950: '#000000',
  },
}
SCSS
$custom: #1f156b;
$custom-light: #675496;
$custom-dark: #000000;
JSON
{
  "hex": "#1f156b",
  "rgb": {
    "r": 31,
    "g": 21,
    "b": 107
  },
  "hsl": {
    "h": 246.977,
    "s": 67.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.28077,
    "c": 0.13961,
    "h": 277.7
  },
  "luminance": 0.01889
}

Semantic roles & 50–950 ramp

primary
#1F156B
secondary
#96A23A
accent
#EA3ED6
background
#F6F4F9
surface
#EBE8F2
border
#C6C4CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #1F156B

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

Preview Lab → · Contrast checker → · Palette generator →

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