#1F145A#1F145A

#1F145A is a dark, moderate blue. Relative luminance 0.015; OKLCH L 26.0% C 0.118 H 281.6°. Best body text is #FFFFFF at 16.08:1 contrast (WCAG AA passes).

Color values

HEX#1F145A
RGBrgb(31, 20, 90)
HSLhsl(249, 64%, 22%)
HSVhsv(249, 78%, 35%)
CMYKcmyk(65.6%, 77.8%, 0%, 64.7%)
CIE-LABlab(12.79, 27.69, -40.06)
CIE-LCHlch(12.79, 48.70, 304.65°)
OKLaboklab(26.03% 0.0237 -0.1155)
OKLCHoklch(26.03% 0.118 281.6)
XYZxyz(2.6601, 1.5296, 9.8259)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F145A #4F5A14
analogous
#142C5A #1F145A #42145A
triadic
#1F145A #5A1F14 #145A1F
tetradic
#1F145A #5A142C #4F5A14 #145A42
square
#1F145A #5A142C #4F5A14 #145A42
split-complementary
#1F145A #5A4214 #2C5A14
monochromatic
#090619 #0E0928 #1F145A #301F8C #412ABE

Accessibility & contrast

On white

16.08
#1F145A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#1F145A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F145A
16.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F145A#FFFFFF#000000##FFFFFF
##1F145A1.0016.081.3116.08
#FFFFFF16.081.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235C
Deuteranopia (green-blind)
#001F59
Tritanopia (blue-blind)
#002735
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #1f145a;
/* rgb */ color: rgb(31, 20, 90);
/* oklch */ color: oklch(26.0% 0.118 281.6);
Tailwind
colors: {
  custom: {
    50: '#635389',
    500: '#1f145a',
    950: '#000000',
  },
}
SCSS
$custom: #1f145a;
$custom-light: #635389;
$custom-dark: #000000;
JSON
{
  "hex": "#1f145a",
  "rgb": {
    "r": 31,
    "g": 20,
    "b": 90
  },
  "hsl": {
    "h": 249.429,
    "s": 63.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.26029,
    "c": 0.1179,
    "h": 281.6
  },
  "luminance": 0.0153
}

Semantic roles & 50–950 ramp

primary
#1F145A
secondary
#849238
accent
#E741CD
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1F145A

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

Preview Lab → · Contrast checker → · Palette generator →

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