#1F427E#1F427E

#1F427E is a dark, moderate blue. Relative luminance 0.057; OKLCH L 38.8% C 0.110 H 260.4°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#1F427E
RGBrgb(31, 66, 126)
HSLhsl(218, 61%, 31%)
HSVhsv(218, 75%, 49%)
CMYKcmyk(75.4%, 47.6%, 0%, 50.6%)
CIE-LABlab(28.63, 9.76, -37.69)
CIE-LCHlch(28.63, 38.94, 284.52°)
OKLaboklab(38.78% -0.0182 -0.108)
OKLCHoklch(38.78% 0.11 260.4)
XYZxyz(6.2778, 5.6934, 20.5027)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F427E #7E5B1F
analogous
#1F717E #1F427E #2B1F7E
triadic
#1F427E #7E1F42 #427E1F
tetradic
#1F427E #7E1F71 #7E5B1F #1F7E2B
square
#1F427E #7E1F71 #7E5B1F #1F7E2B
split-complementary
#1F427E #7E2B1F #717E1F
monochromatic
#070F1C #13284D #1F427E #2B5CAF #4679D1

Accessibility & contrast

On white

9.82
#1F427E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#1F427E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F427E
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F427E#FFFFFF#000000##FFFFFF
##1F427E1.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234880
Deuteranopia (green-blind)
#0E3F7D
Tritanopia (blue-blind)
#00505A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1f427e;
/* rgb */ color: rgb(31, 66, 126);
/* oklch */ color: oklch(38.8% 0.110 260.4);
Tailwind
colors: {
  custom: {
    50: '#6875a4',
    500: '#1f427e',
    950: '#000000',
  },
}
SCSS
$custom: #1f427e;
$custom-light: #6875a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f427e",
  "rgb": {
    "r": 31,
    "g": 66,
    "b": 126
  },
  "hsl": {
    "h": 217.895,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38781,
    "c": 0.10956,
    "h": 260.4
  },
  "luminance": 0.05694
}

Semantic roles & 50–950 ramp

primary
#1F427E
secondary
#B18A48
accent
#A944E4
background
#F6F7FA
surface
#EBEDF4
border
#C6C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1F427E

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

Preview Lab → · Contrast checker → · Palette generator →

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