#1F4A9C#1F4A9C

#1F4A9C is a dark, vivid blue. Relative luminance 0.076; OKLCH L 42.9% C 0.142 H 261.7°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#1F4A9C
RGBrgb(31, 74, 156)
HSLhsl(219, 67%, 37%)
HSVhsv(219, 80%, 61%)
CMYKcmyk(80.1%, 52.6%, 0%, 38.8%)
CIE-LABlab(33.11, 16.32, -48.90)
CIE-LCHlch(33.11, 51.55, 288.46°)
OKLaboklab(42.89% -0.0206 -0.1408)
OKLCHoklch(42.89% 0.142 261.7)
XYZxyz(9.0124, 7.5881, 32.4357)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4A9C #9C711F
analogous
#1F899C #1F4A9C #331F9C
triadic
#1F4A9C #9C1F4A #4A9C1F
tetradic
#1F4A9C #9C1F89 #9C711F #1F9C33
square
#1F4A9C #9C1F89 #9C711F #1F9C33
split-complementary
#1F4A9C #9C331F #899C1F
monochromatic
#0B1A36 #153269 #1F4A9C #2962CF #5886DE

Accessibility & contrast

On white

8.34
#1F4A9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#1F4A9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4A9C
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4A9C#FFFFFF#000000##FFFFFF
##1F4A9C1.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12549F
Deuteranopia (green-blind)
#00489A
Tritanopia (blue-blind)
#005E6B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1f4a9c;
/* rgb */ color: rgb(31, 74, 156);
/* oklch */ color: oklch(42.9% 0.142 261.7);
Tailwind
colors: {
  custom: {
    50: '#6f7bba',
    500: '#1f4a9c',
    950: '#000000',
  },
}
SCSS
$custom: #1f4a9c;
$custom-light: #6f7bba;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4a9c",
  "rgb": {
    "r": 31,
    "g": 74,
    "b": 156
  },
  "hsl": {
    "h": 219.36,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.4289,
    "c": 0.14233,
    "h": 261.7
  },
  "luminance": 0.07589
}

Semantic roles & 50–950 ramp

primary
#1F4A9C
secondary
#C19C55
accent
#AF3EEA
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #1F4A9C

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

Preview Lab → · Contrast checker → · Palette generator →

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