#1F457F#1F457F

#1F457F is a dark, moderate blue. Relative luminance 0.061; OKLCH L 39.6% C 0.107 H 258.8°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#1F457F
RGBrgb(31, 69, 127)
HSLhsl(216, 61%, 31%)
HSVhsv(216, 76%, 50%)
CMYKcmyk(75.6%, 45.7%, 0%, 50.2%)
CIE-LABlab(29.61, 8.11, -36.74)
CIE-LCHlch(29.61, 37.62, 282.44°)
OKLaboklab(39.56% -0.0209 -0.1052)
OKLCHoklch(39.56% 0.107 258.8)
XYZxyz(6.5226, 6.0791, 20.9042)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F457F #7F591F
analogous
#1F757F #1F457F #291F7F
triadic
#1F457F #7F1F45 #457F1F
tetradic
#1F457F #7F1F75 #7F591F #1F7F29
square
#1F457F #7F1F75 #7F591F #1F7F29
split-complementary
#1F457F #7F291F #757F1F
monochromatic
#07101D #132A4E #1F457F #2B60B0 #467ED2

Accessibility & contrast

On white

9.48
#1F457F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#1F457F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F457F
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F457F#FFFFFF#000000##FFFFFF
##1F457F1.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284B81
Deuteranopia (green-blind)
#16427E
Tritanopia (blue-blind)
#00535B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f457f;
/* rgb */ color: rgb(31, 69, 127);
/* oklch */ color: oklch(39.6% 0.107 258.8);
Tailwind
colors: {
  custom: {
    50: '#6878a4',
    500: '#1f457f',
    950: '#000000',
  },
}
SCSS
$custom: #1f457f;
$custom-light: #6878a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f457f",
  "rgb": {
    "r": 31,
    "g": 69,
    "b": 127
  },
  "hsl": {
    "h": 216.25,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.39562,
    "c": 0.10722,
    "h": 258.8
  },
  "luminance": 0.0608
}

Semantic roles & 50–950 ramp

primary
#1F457F
secondary
#B28848
accent
#A544E4
background
#F6F7FA
surface
#EBEDF4
border
#C6C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1F457F

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

Preview Lab → · Contrast checker → · Palette generator →

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