#1F156E#1F156E

#1F156E is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.4% C 0.144 H 277.1°. Best body text is #FFFFFF at 15.10:1 contrast (WCAG AA passes).

Color values

HEX#1F156E
RGBrgb(31, 21, 110)
HSLhsl(247, 68%, 26%)
HSVhsv(247, 81%, 43%)
CMYKcmyk(71.8%, 80.9%, 0%, 56.9%)
CIE-LABlab(15.24, 33.99, -49.28)
CIE-LCHlch(15.24, 59.86, 304.59°)
OKLaboklab(28.42% 0.0178 -0.1424)
OKLCHoklch(28.42% 0.144 277.1)
XYZxyz(3.6468, 1.9531, 14.9336)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F156E #646E15
analogous
#15376E #1F156E #4B156E
triadic
#1F156E #6E1F15 #156E1F
tetradic
#1F156E #6E1537 #646E15 #156E4B
square
#1F156E #6E1537 #646E15 #156E4B
split-complementary
#1F156E #6E4B15 #376E15
monochromatic
#07051A #110B3B #1F156E #2D1FA1 #3C29D5

Accessibility & contrast

On white

15.10
#1F156E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#1F156E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F156E
15.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F156E#FFFFFF#000000##FFFFFF
##1F156E1.0015.101.3915.10
#FFFFFF15.101.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A71
Deuteranopia (green-blind)
#00226C
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1f156e;
/* rgb */ color: rgb(31, 21, 110);
/* oklch */ color: oklch(28.4% 0.144 277.1);
Tailwind
colors: {
  custom: {
    50: '#685599',
    500: '#1f156e',
    950: '#000000',
  },
}
SCSS
$custom: #1f156e;
$custom-light: #685599;
$custom-dark: #000000;
JSON
{
  "hex": "#1f156e",
  "rgb": {
    "r": 31,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 246.742,
    "s": 67.939,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28423,
    "c": 0.14352,
    "h": 277.1
  },
  "luminance": 0.01953
}

Semantic roles & 50–950 ramp

primary
#1F156E
secondary
#98A43A
accent
#EB3DD7
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F156E

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

Preview Lab → · Contrast checker → · Palette generator →

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