#1F4D9C#1F4D9C

#1F4D9C is a dark, vivid blue. Relative luminance 0.080; OKLCH L 43.6% C 0.139 H 260.5°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#1F4D9C
RGBrgb(31, 77, 156)
HSLhsl(218, 67%, 37%)
HSVhsv(218, 80%, 61%)
CMYKcmyk(80.1%, 50.6%, 0%, 38.8%)
CIE-LABlab(33.98, 14.29, -47.50)
CIE-LCHlch(33.98, 49.60, 286.74°)
OKLaboklab(43.55% -0.0229 -0.1366)
OKLCHoklch(43.55% 0.139 260.5)
XYZxyz(9.2175, 7.9983, 32.5041)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4D9C #9C6E1F
analogous
#1F8C9C #1F4D9C #301F9C
triadic
#1F4D9C #9C1F4D #4D9C1F
tetradic
#1F4D9C #9C1F8C #9C6E1F #1F9C30
square
#1F4D9C #9C1F8C #9C6E1F #1F9C30
split-complementary
#1F4D9C #9C301F #8C9C1F
monochromatic
#0B1B36 #153469 #1F4D9C #2966CF #5889DE

Accessibility & contrast

On white

8.08
#1F4D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#1F4D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4D9C
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4D9C#FFFFFF#000000##FFFFFF
##1F4D9C1.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D569F
Deuteranopia (green-blind)
#004B9A
Tritanopia (blue-blind)
#00606D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #1f4d9c;
/* rgb */ color: rgb(31, 77, 156);
/* oklch */ color: oklch(43.6% 0.139 260.5);
Tailwind
colors: {
  custom: {
    50: '#6f7eba',
    500: '#1f4d9c',
    950: '#000000',
  },
}
SCSS
$custom: #1f4d9c;
$custom-light: #6f7eba;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4d9c",
  "rgb": {
    "r": 31,
    "g": 77,
    "b": 156
  },
  "hsl": {
    "h": 217.92,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.43554,
    "c": 0.13856,
    "h": 260.5
  },
  "luminance": 0.07999
}

Semantic roles & 50–950 ramp

primary
#1F4D9C
secondary
#C19A55
accent
#AB3EEA
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #1F4D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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