#1F427D#1F427D

#1F427D is a dark, moderate blue. Relative luminance 0.057; OKLCH L 38.7% C 0.108 H 260.2°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#1F427D
RGBrgb(31, 66, 125)
HSLhsl(218, 60%, 31%)
HSVhsv(218, 75%, 49%)
CMYKcmyk(75.2%, 47.2%, 0%, 51%)
CIE-LABlab(28.56, 9.36, -37.18)
CIE-LCHlch(28.56, 38.34, 284.13°)
OKLaboklab(38.71% -0.0184 -0.1065)
OKLCHoklch(38.71% 0.108 260.2)
XYZxyz(6.2136, 5.6677, 20.1646)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F427D #7D5A1F
analogous
#1F717D #1F427D #2B1F7D
triadic
#1F427D #7D1F42 #427D1F
tetradic
#1F427D #7D1F71 #7D5A1F #1F7D2B
square
#1F427D #7D1F71 #7D5A1F #1F7D2B
split-complementary
#1F427D #7D2B1F #717D1F
monochromatic
#070E1B #13284C #1F427D #2B5CAE #4579D1

Accessibility & contrast

On white

9.84
#1F427D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#1F427D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F427D
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F427D#FFFFFF#000000##FFFFFF
##1F427D1.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24487F
Deuteranopia (green-blind)
#103F7C
Tritanopia (blue-blind)
#005059
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1f427d;
/* rgb */ color: rgb(31, 66, 125);
/* oklch */ color: oklch(38.7% 0.108 260.2);
Tailwind
colors: {
  custom: {
    50: '#6875a3',
    500: '#1f427d',
    950: '#000000',
  },
}
SCSS
$custom: #1f427d;
$custom-light: #6875a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f427d",
  "rgb": {
    "r": 31,
    "g": 66,
    "b": 125
  },
  "hsl": {
    "h": 217.66,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38707,
    "c": 0.10808,
    "h": 260.2
  },
  "luminance": 0.05668
}

Semantic roles & 50–950 ramp

primary
#1F427D
secondary
#B08948
accent
#A844E3
background
#F6F7FA
surface
#EBEDF4
border
#C6C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1F427D

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

Preview Lab → · Contrast checker → · Palette generator →

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