#1F4A9F#1F4A9F

#1F4A9F is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.1% C 0.147 H 262.1°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#1F4A9F
RGBrgb(31, 74, 159)
HSLhsl(220, 67%, 37%)
HSVhsv(220, 81%, 62%)
CMYKcmyk(80.5%, 53.5%, 0%, 37.6%)
CIE-LABlab(33.33, 17.52, -50.35)
CIE-LCHlch(33.33, 53.31, 289.18°)
OKLaboklab(43.13% -0.0202 -0.1451)
OKLCHoklch(43.13% 0.147 262.1)
XYZxyz(9.2696, 7.6910, 33.7901)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4A9F #9F741F
analogous
#1F8A9F #1F4A9F #341F9F
triadic
#1F4A9F #9F1F4A #4A9F1F
tetradic
#1F4A9F #9F1F8A #9F741F #1F9F34
square
#1F4A9F #9F1F8A #9F741F #1F9F34
split-complementary
#1F4A9F #9F341F #8A9F1F
monochromatic
#0B1A39 #15326C #1F4A9F #2962D2 #5A86DF

Accessibility & contrast

On white

8.27
#1F4A9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#1F4A9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4A9F
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4A9F#FFFFFF#000000##FFFFFF
##1F4A9F1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A55A2
Deuteranopia (green-blind)
#00499D
Tritanopia (blue-blind)
#005F6D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1f4a9f;
/* rgb */ color: rgb(31, 74, 159);
/* oklch */ color: oklch(43.1% 0.147 262.1);
Tailwind
colors: {
  custom: {
    50: '#707bbc',
    500: '#1f4a9f',
    950: '#000000',
  },
}
SCSS
$custom: #1f4a9f;
$custom-light: #707bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4a9f",
  "rgb": {
    "r": 31,
    "g": 74,
    "b": 159
  },
  "hsl": {
    "h": 219.844,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.43128,
    "c": 0.14652,
    "h": 262.1
  },
  "luminance": 0.07692
}

Semantic roles & 50–950 ramp

primary
#1F4A9F
secondary
#C39F57
accent
#B03EEA
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #1F4A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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