#1F427A#1F427A

#1F427A is a dark, moderate blue. Relative luminance 0.056; OKLCH L 38.5% C 0.104 H 259.4°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#1F427A
RGBrgb(31, 66, 122)
HSLhsl(217, 59%, 30%)
HSVhsv(217, 75%, 48%)
CMYKcmyk(74.6%, 45.9%, 0%, 52.2%)
CIE-LABlab(28.36, 8.16, -35.61)
CIE-LCHlch(28.36, 36.54, 282.90°)
OKLaboklab(38.49% -0.019 -0.1019)
OKLCHoklch(38.49% 0.104 259.4)
XYZxyz(6.0249, 5.5922, 19.1705)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F427A #7A571F
analogous
#1F707A #1F427A #291F7A
triadic
#1F427A #7A1F42 #427A1F
tetradic
#1F427A #7A1F70 #7A571F #1F7A29
square
#1F427A #7A1F70 #7A571F #1F7A29
split-complementary
#1F427A #7A291F #707A1F
monochromatic
#060D18 #132849 #1F427A #2B5CAB #447ACF

Accessibility & contrast

On white

9.91
#1F427A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#1F427A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F427A
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F427A#FFFFFF#000000##FFFFFF
##1F427A1.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26477C
Deuteranopia (green-blind)
#153F79
Tritanopia (blue-blind)
#004F58
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1f427a;
/* rgb */ color: rgb(31, 66, 122);
/* oklch */ color: oklch(38.5% 0.104 259.4);
Tailwind
colors: {
  custom: {
    50: '#6775a1',
    500: '#1f427a',
    950: '#000000',
  },
}
SCSS
$custom: #1f427a;
$custom-light: #6775a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f427a",
  "rgb": {
    "r": 31,
    "g": 66,
    "b": 122
  },
  "hsl": {
    "h": 216.923,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.3849,
    "c": 0.10367,
    "h": 259.4
  },
  "luminance": 0.05593
}

Semantic roles & 50–950 ramp

primary
#1F427A
secondary
#AD8647
accent
#A645E3
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#07080F
muted
#7A7B7E

Preview Lab

Preview with #1F427A

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

Preview Lab → · Contrast checker → · Palette generator →

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