#1F458B#1F458B

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

Color values

HEX#1F458B
RGBrgb(31, 69, 139)
HSLhsl(219, 64%, 33%)
HSVhsv(219, 78%, 55%)
CMYKcmyk(77.7%, 50.4%, 0%, 45.5%)
CIE-LABlab(30.43, 12.92, -42.86)
CIE-LCHlch(30.43, 44.77, 286.78°)
OKLaboklab(40.45% -0.0188 -0.1232)
OKLCHoklch(40.45% 0.125 261.3)
XYZxyz(7.3517, 6.4108, 25.2710)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F458B #8B651F
analogous
#1F7B8B #1F458B #2F1F8B
triadic
#1F458B #8B1F45 #458B1F
tetradic
#1F458B #8B1F7B #8B651F #1F8B2F
square
#1F458B #8B1F7B #8B651F #1F8B2F
split-complementary
#1F458B #8B2F1F #7B8B1F
monochromatic
#091327 #142C59 #1F458B #2A5EBD #4D7ED7

Accessibility & contrast

On white

9.20
#1F458B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F458B
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F458B#FFFFFF#000000##FFFFFF
##1F458B1.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4D8E
Deuteranopia (green-blind)
#00438A
Tritanopia (blue-blind)
#005661
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1f458b;
/* rgb */ color: rgb(31, 69, 139);
/* oklch */ color: oklch(40.5% 0.125 261.3);
Tailwind
colors: {
  custom: {
    50: '#6b78ad',
    500: '#1f458b',
    950: '#000000',
  },
}
SCSS
$custom: #1f458b;
$custom-light: #6b78ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f458b",
  "rgb": {
    "r": 31,
    "g": 69,
    "b": 139
  },
  "hsl": {
    "h": 218.889,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.40451,
    "c": 0.1246,
    "h": 261.3
  },
  "luminance": 0.06412
}

Semantic roles & 50–950 ramp

primary
#1F458B
secondary
#BA934C
accent
#AC41E7
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #1F458B

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

Preview Lab → · Contrast checker → · Palette generator →

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