#1F4CAE#1F4CAE

#1F4CAE is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.8% C 0.165 H 262.9°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#1F4CAE
RGBrgb(31, 76, 174)
HSLhsl(221, 70%, 40%)
HSVhsv(221, 82%, 68%)
CMYKcmyk(82.2%, 56.3%, 0%, 31.8%)
CIE-LABlab(35.03, 22.11, -56.57)
CIE-LCHlch(35.03, 60.73, 291.35°)
OKLaboklab(44.78% -0.0202 -0.1633)
OKLCHoklch(44.78% 0.165 262.9)
XYZxyz(10.7868, 8.5149, 41.1112)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4CAE #AE811F
analogous
#1F93AE #1F4CAE #3A1FAE
triadic
#1F4CAE #AE1F4C #4CAE1F
tetradic
#1F4CAE #AE1F93 #AE811F #1FAE3A
square
#1F4CAE #AE1F93 #AE811F #1FAE3A
split-complementary
#1F4CAE #AE3A1F #93AE1F
monochromatic
#0C1F46 #16357A #1F4CAE #3066DA #648CE3

Accessibility & contrast

On white

7.77
#1F4CAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#1F4CAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4CAE
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4CAE#FFFFFF#000000##FFFFFF
##1F4CAE1.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B1
Deuteranopia (green-blind)
#004CAC
Tritanopia (blue-blind)
#006475
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #1f4cae;
/* rgb */ color: rgb(31, 76, 174);
/* oklch */ color: oklch(44.8% 0.165 262.9);
Tailwind
colors: {
  custom: {
    50: '#747dc7',
    500: '#1f4cae',
    950: '#000000',
  },
}
SCSS
$custom: #1f4cae;
$custom-light: #747dc7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4cae",
  "rgb": {
    "r": 31,
    "g": 76,
    "b": 174
  },
  "hsl": {
    "h": 221.119,
    "s": 69.756,
    "l": 40.196
  },
  "oklch": {
    "l": 0.44778,
    "c": 0.1646,
    "h": 262.9
  },
  "luminance": 0.08516
}

Semantic roles & 50–950 ramp

primary
#1F4CAE
secondary
#C8A860
accent
#B53BED
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #1F4CAE

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

Preview Lab → · Contrast checker → · Palette generator →

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