#1F458A#1F458A

#1F458A is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.4% C 0.123 H 261.2°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#1F458A
RGBrgb(31, 69, 138)
HSLhsl(219, 63%, 33%)
HSVhsv(219, 78%, 54%)
CMYKcmyk(77.5%, 50%, 0%, 45.9%)
CIE-LABlab(30.36, 12.52, -42.36)
CIE-LCHlch(30.36, 44.17, 286.47°)
OKLaboklab(40.37% -0.0189 -0.1217)
OKLCHoklch(40.37% 0.123 261.2)
XYZxyz(7.2790, 6.3817, 24.8880)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F458A #8A641F
analogous
#1F7A8A #1F458A #2F1F8A
triadic
#1F458A #8A1F45 #458A1F
tetradic
#1F458A #8A1F7A #8A641F #1F8A2F
square
#1F458A #8A1F7A #8A641F #1F8A2F
split-complementary
#1F458A #8A2F1F #7A8A1F
monochromatic
#091326 #142C58 #1F458A #2A5EBC #4C7ED7

Accessibility & contrast

On white

9.22
#1F458A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#1F458A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F458A
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F458A#FFFFFF#000000##FFFFFF
##1F458A1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4D8D
Deuteranopia (green-blind)
#004389
Tritanopia (blue-blind)
#005561
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f458a;
/* rgb */ color: rgb(31, 69, 138);
/* oklch */ color: oklch(40.4% 0.123 261.2);
Tailwind
colors: {
  custom: {
    50: '#6b78ad',
    500: '#1f458a',
    950: '#000000',
  },
}
SCSS
$custom: #1f458a;
$custom-light: #6b78ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f458a",
  "rgb": {
    "r": 31,
    "g": 69,
    "b": 138
  },
  "hsl": {
    "h": 218.692,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.40374,
    "c": 0.12316,
    "h": 261.2
  },
  "luminance": 0.06383
}

Semantic roles & 50–950 ramp

primary
#1F458A
secondary
#BA924B
accent
#AC41E6
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #1F458A

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

Preview Lab → · Contrast checker → · Palette generator →

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