#1F458E#1F458E

#1F458E is a dark, vivid blue. Relative luminance 0.065; OKLCH L 40.7% C 0.129 H 261.8°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#1F458E
RGBrgb(31, 69, 142)
HSLhsl(219, 64%, 34%)
HSVhsv(219, 78%, 56%)
CMYKcmyk(78.2%, 51.4%, 0%, 44.3%)
CIE-LABlab(30.64, 14.13, -44.36)
CIE-LCHlch(30.64, 46.56, 287.66°)
OKLaboklab(40.68% -0.0184 -0.1276)
OKLCHoklch(40.68% 0.129 261.8)
XYZxyz(7.5739, 6.4997, 26.4413)
Luminance0.0650 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F458E #8E681F
analogous
#1F7D8E #1F458E #301F8E
triadic
#1F458E #8E1F45 #458E1F
tetradic
#1F458E #8E1F7D #8E681F #1F8E30
square
#1F458E #8E1F7D #8E681F #1F8E30
split-complementary
#1F458E #8E301F #7D8E1F
monochromatic
#09142A #142D5C #1F458E #2A5DC0 #4F7ED9

Accessibility & contrast

On white

9.13
#1F458E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#1F458E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F458E
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F458E#FFFFFF#000000##FFFFFF
##1F458E1.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184E91
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#005762
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1f458e;
/* rgb */ color: rgb(31, 69, 142);
/* oklch */ color: oklch(40.7% 0.129 261.8);
Tailwind
colors: {
  custom: {
    50: '#6c78b0',
    500: '#1f458e',
    950: '#000000',
  },
}
SCSS
$custom: #1f458e;
$custom-light: #6c78b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f458e",
  "rgb": {
    "r": 31,
    "g": 69,
    "b": 142
  },
  "hsl": {
    "h": 219.459,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.40682,
    "c": 0.12891,
    "h": 261.8
  },
  "luminance": 0.06501
}

Semantic roles & 50–950 ramp

primary
#1F458E
secondary
#BB964D
accent
#AE41E7
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #1F458E

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

Preview Lab → · Contrast checker → · Palette generator →

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