#1F427F#1F427F

#1F427F is a dark, moderate blue. Relative luminance 0.057; OKLCH L 38.9% C 0.111 H 260.6°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#1F427F
RGBrgb(31, 66, 127)
HSLhsl(218, 61%, 31%)
HSVhsv(218, 76%, 50%)
CMYKcmyk(75.6%, 48%, 0%, 50.2%)
CIE-LABlab(28.69, 10.16, -38.21)
CIE-LCHlch(28.69, 39.54, 284.90°)
OKLaboklab(38.85% -0.018 -0.1095)
OKLCHoklch(38.85% 0.111 260.6)
XYZxyz(6.3427, 5.7194, 20.8442)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F427F #7F5C1F
analogous
#1F727F #1F427F #2C1F7F
triadic
#1F427F #7F1F42 #427F1F
tetradic
#1F427F #7F1F72 #7F5C1F #1F7F2C
square
#1F427F #7F1F72 #7F5C1F #1F7F2C
split-complementary
#1F427F #7F2C1F #727F1F
monochromatic
#070F1D #13284E #1F427F #2B5CB0 #4679D2

Accessibility & contrast

On white

9.79
#1F427F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F427F
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F427F#FFFFFF#000000##FFFFFF
##1F427F1.009.792.149.79
#FFFFFF9.791.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224881
Deuteranopia (green-blind)
#0C407E
Tritanopia (blue-blind)
#00505A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1f427f;
/* rgb */ color: rgb(31, 66, 127);
/* oklch */ color: oklch(38.9% 0.111 260.6);
Tailwind
colors: {
  custom: {
    50: '#6975a4',
    500: '#1f427f',
    950: '#000000',
  },
}
SCSS
$custom: #1f427f;
$custom-light: #6975a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f427f",
  "rgb": {
    "r": 31,
    "g": 66,
    "b": 127
  },
  "hsl": {
    "h": 218.125,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38854,
    "c": 0.11102,
    "h": 260.6
  },
  "luminance": 0.0572
}

Semantic roles & 50–950 ramp

primary
#1F427F
secondary
#B28B48
accent
#AA44E4
background
#F6F7FA
surface
#EBEDF4
border
#C6C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1F427F

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

Preview Lab → · Contrast checker → · Palette generator →

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