#1F458C#1F458C

#1F458C is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.5% C 0.126 H 261.5°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#1F458C
RGBrgb(31, 69, 140)
HSLhsl(219, 64%, 34%)
HSVhsv(219, 78%, 55%)
CMYKcmyk(77.9%, 50.7%, 0%, 45.1%)
CIE-LABlab(30.50, 13.32, -43.37)
CIE-LCHlch(30.50, 45.37, 287.08°)
OKLaboklab(40.53% -0.0186 -0.1247)
OKLCHoklch(40.53% 0.126 261.5)
XYZxyz(7.4251, 6.4402, 25.6576)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F458C #8C661F
analogous
#1F7B8C #1F458C #301F8C
triadic
#1F458C #8C1F45 #458C1F
tetradic
#1F458C #8C1F7B #8C661F #1F8C30
square
#1F458C #8C1F7B #8C661F #1F8C30
split-complementary
#1F458C #8C301F #7B8C1F
monochromatic
#091428 #142C5A #1F458C #2A5EBE #4E7ED8

Accessibility & contrast

On white

9.18
#1F458C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#1F458C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F458C
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F458C#FFFFFF#000000##FFFFFF
##1F458C1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4D8F
Deuteranopia (green-blind)
#00438B
Tritanopia (blue-blind)
#005662
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1f458c;
/* rgb */ color: rgb(31, 69, 140);
/* oklch */ color: oklch(40.5% 0.126 261.5);
Tailwind
colors: {
  custom: {
    50: '#6c78ae',
    500: '#1f458c',
    950: '#000000',
  },
}
SCSS
$custom: #1f458c;
$custom-light: #6c78ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f458c",
  "rgb": {
    "r": 31,
    "g": 69,
    "b": 140
  },
  "hsl": {
    "h": 219.083,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.40527,
    "c": 0.12605,
    "h": 261.5
  },
  "luminance": 0.06441
}

Semantic roles & 50–950 ramp

primary
#1F458C
secondary
#BB944C
accent
#AD41E7
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #1F458C

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

Preview Lab → · Contrast checker → · Palette generator →

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