#1F457D#1F457D

#1F457D is a dark, moderate blue. Relative luminance 0.060; OKLCH L 39.4% C 0.104 H 258.2°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#1F457D
RGBrgb(31, 69, 125)
HSLhsl(216, 60%, 31%)
HSVhsv(216, 75%, 49%)
CMYKcmyk(75.2%, 44.8%, 0%, 51%)
CIE-LABlab(29.48, 7.30, -35.70)
CIE-LCHlch(29.48, 36.44, 281.56°)
OKLaboklab(39.42% -0.0213 -0.1021)
OKLCHoklch(39.42% 0.104 258.2)
XYZxyz(6.3935, 6.0275, 20.2245)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F457D #7D571F
analogous
#1F747D #1F457D #281F7D
triadic
#1F457D #7D1F45 #457D1F
tetradic
#1F457D #7D1F74 #7D571F #1F7D28
square
#1F457D #7D1F74 #7D571F #1F7D28
split-complementary
#1F457D #7D281F #747D1F
monochromatic
#070F1B #132A4C #1F457D #2B60AE #457ED1

Accessibility & contrast

On white

9.52
#1F457D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#1F457D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F457D
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F457D#FFFFFF#000000##FFFFFF
##1F457D1.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4A7F
Deuteranopia (green-blind)
#19417C
Tritanopia (blue-blind)
#00525B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1f457d;
/* rgb */ color: rgb(31, 69, 125);
/* oklch */ color: oklch(39.4% 0.104 258.2);
Tailwind
colors: {
  custom: {
    50: '#6878a3',
    500: '#1f457d',
    950: '#000000',
  },
}
SCSS
$custom: #1f457d;
$custom-light: #6878a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f457d",
  "rgb": {
    "r": 31,
    "g": 69,
    "b": 125
  },
  "hsl": {
    "h": 215.745,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3942,
    "c": 0.1043,
    "h": 258.2
  },
  "luminance": 0.06028
}

Semantic roles & 50–950 ramp

primary
#1F457D
secondary
#B08648
accent
#A344E3
background
#F6F7FA
surface
#EBEDF4
border
#C6C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1F457D

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

Preview Lab → · Contrast checker → · Palette generator →

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