#1F1A74#1F1A74

#1F1A74 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.8% C 0.146 H 275.3°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).

Color values

HEX#1F1A74
RGBrgb(31, 26, 116)
HSLhsl(243, 63%, 28%)
HSVhsv(243, 78%, 45%)
CMYKcmyk(73.3%, 77.6%, 0%, 54.5%)
CIE-LABlab(16.94, 33.15, -50.36)
CIE-LCHlch(16.94, 60.29, 303.36°)
OKLaboklab(29.83% 0.0136 -0.1456)
OKLCHoklch(29.83% 0.146 275.3)
XYZxyz(4.0858, 2.2907, 16.7464)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1A74 #6F741A
analogous
#1A4274 #1F1A74 #4C1A74
triadic
#1F1A74 #741F1A #1A741F
tetradic
#1F1A74 #741A42 #6F741A #1A744C
square
#1F1A74 #741A42 #6F741A #1A744C
split-complementary
#1F1A74 #744C1A #42741A
monochromatic
#070619 #120F42 #1F1A74 #2C25A6 #3F36D2

Accessibility & contrast

On white

14.40
#1F1A74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#1F1A74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1A74
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1A74#FFFFFF#000000##FFFFFF
##1F1A741.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002672
Tritanopia (blue-blind)
#003445
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1f1a74;
/* rgb */ color: rgb(31, 26, 116);
/* oklch */ color: oklch(29.8% 0.146 275.3);
Tailwind
colors: {
  custom: {
    50: '#69589d',
    500: '#1f1a74',
    950: '#000000',
  },
}
SCSS
$custom: #1f1a74;
$custom-light: #69589d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1a74",
  "rgb": {
    "r": 31,
    "g": 26,
    "b": 116
  },
  "hsl": {
    "h": 243.333,
    "s": 63.38,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29827,
    "c": 0.14622,
    "h": 275.3
  },
  "luminance": 0.02291
}

Semantic roles & 50–950 ramp

primary
#1F1A74
secondary
#A3A941
accent
#E641DD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F1A74

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

Preview Lab → · Contrast checker → · Palette generator →

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