#1F4EAD#1F4EAD

#1F4EAD is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.1% C 0.161 H 262.2°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#1F4EAD
RGBrgb(31, 78, 173)
HSLhsl(220, 70%, 40%)
HSVhsv(220, 82%, 68%)
CMYKcmyk(82.1%, 54.9%, 0%, 32.2%)
CIE-LABlab(35.51, 20.37, -55.20)
CIE-LCHlch(35.51, 58.84, 290.26°)
OKLaboklab(45.12% -0.0217 -0.1593)
OKLCHoklch(45.12% 0.161 262.2)
XYZxyz(10.8296, 8.7559, 40.6463)
Luminance0.0876 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4EAD #AD7E1F
analogous
#1F95AD #1F4EAD #371FAD
triadic
#1F4EAD #AD1F4E #4EAD1F
tetradic
#1F4EAD #AD1F95 #AD7E1F #1FAD37
square
#1F4EAD #AD1F95 #AD7E1F #1FAD37
split-complementary
#1F4EAD #AD371F #95AD1F
monochromatic
#0C1F45 #163779 #1F4EAD #2F68DA #638EE3

Accessibility & contrast

On white

7.63
#1F4EAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#1F4EAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4EAD
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4EAD#FFFFFF#000000##FFFFFF
##1F4EAD1.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB0
Deuteranopia (green-blind)
#004DAB
Tritanopia (blue-blind)
#006676
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #1f4ead;
/* rgb */ color: rgb(31, 78, 173);
/* oklch */ color: oklch(45.1% 0.161 262.2);
Tailwind
colors: {
  custom: {
    50: '#737ec6',
    500: '#1f4ead',
    950: '#000000',
  },
}
SCSS
$custom: #1f4ead;
$custom-light: #737ec6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4ead",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 173
  },
  "hsl": {
    "h": 220.141,
    "s": 69.608,
    "l": 40
  },
  "oklch": {
    "l": 0.45115,
    "c": 0.16076,
    "h": 262.2
  },
  "luminance": 0.08757
}

Semantic roles & 50–950 ramp

primary
#1F4EAD
secondary
#C8A660
accent
#B23BEC
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #1F4EAD

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

Preview Lab → · Contrast checker → · Palette generator →

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