#1F156F#1F156F

#1F156F is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.5% C 0.145 H 277.0°. Best body text is #FFFFFF at 15.05:1 contrast (WCAG AA passes).

Color values

HEX#1F156F
RGBrgb(31, 21, 111)
HSLhsl(247, 68%, 26%)
HSVhsv(247, 81%, 44%)
CMYKcmyk(72.1%, 81.1%, 0%, 56.5%)
CIE-LABlab(15.36, 34.33, -49.74)
CIE-LCHlch(15.36, 60.43, 304.61°)
OKLaboklab(28.54% 0.0176 -0.1437)
OKLCHoklch(28.54% 0.145 277)
XYZxyz(3.7015, 1.9750, 15.2220)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F156F #656F15
analogous
#15386F #1F156F #4C156F
triadic
#1F156F #6F1F15 #156F1F
tetradic
#1F156F #6F1538 #656F15 #156F4C
square
#1F156F #6F1538 #656F15 #156F4C
split-complementary
#1F156F #6F4C15 #386F15
monochromatic
#07051A #110B3C #1F156F #2D1FA2 #3C28D6

Accessibility & contrast

On white

15.05
#1F156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#1F156F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F156F
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F156F#FFFFFF#000000##FFFFFF
##1F156F1.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A72
Deuteranopia (green-blind)
#00236D
Tritanopia (blue-blind)
#003041
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1f156f;
/* rgb */ color: rgb(31, 21, 111);
/* oklch */ color: oklch(28.5% 0.145 277.0);
Tailwind
colors: {
  custom: {
    50: '#685599',
    500: '#1f156f',
    950: '#000000',
  },
}
SCSS
$custom: #1f156f;
$custom-light: #685599;
$custom-dark: #000000;
JSON
{
  "hex": "#1f156f",
  "rgb": {
    "r": 31,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 246.667,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28539,
    "c": 0.14481,
    "h": 277
  },
  "luminance": 0.01975
}

Semantic roles & 50–950 ramp

primary
#1F156F
secondary
#99A53A
accent
#EB3DD8
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F156F

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

Preview Lab → · Contrast checker → · Palette generator →

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