#1F4E9E#1F4E9E

#1F4E9E is a dark, vivid blue. Relative luminance 0.082; OKLCH L 43.9% C 0.140 H 260.4°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#1F4E9E
RGBrgb(31, 78, 158)
HSLhsl(218, 67%, 37%)
HSVhsv(218, 80%, 62%)
CMYKcmyk(80.4%, 50.6%, 0%, 38%)
CIE-LABlab(34.41, 14.41, -48.00)
CIE-LCHlch(34.41, 50.12, 286.71°)
OKLaboklab(43.93% -0.0234 -0.1381)
OKLCHoklch(43.93% 0.14 260.4)
XYZxyz(9.4588, 8.2076, 33.4268)
Luminance0.0821 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E9E #9E6F1F
analogous
#1F8E9E #1F4E9E #2F1F9E
triadic
#1F4E9E #9E1F4E #4E9E1F
tetradic
#1F4E9E #9E1F8E #9E6F1F #1F9E2F
square
#1F4E9E #9E1F8E #9E6F1F #1F9E2F
split-complementary
#1F4E9E #9E2F1F #8E9E1F
monochromatic
#0B1B38 #15356B #1F4E9E #2967D1 #598ADE

Accessibility & contrast

On white

7.95
#1F4E9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#1F4E9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4E9E
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E9E#FFFFFF#000000##FFFFFF
##1F4E9E1.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D57A1
Deuteranopia (green-blind)
#004B9C
Tritanopia (blue-blind)
#00616E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #1f4e9e;
/* rgb */ color: rgb(31, 78, 158);
/* oklch */ color: oklch(43.9% 0.140 260.4);
Tailwind
colors: {
  custom: {
    50: '#707ebb',
    500: '#1f4e9e',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e9e;
$custom-light: #707ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e9e",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 158
  },
  "hsl": {
    "h": 217.795,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.4393,
    "c": 0.14009,
    "h": 260.4
  },
  "luminance": 0.08209
}

Semantic roles & 50–950 ramp

primary
#1F4E9E
secondary
#C29A56
accent
#AA3EEA
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1F4E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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