#1F42AE#1F42AE

#1F42AE is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.8% C 0.177 H 265.4°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#1F42AE
RGBrgb(31, 66, 174)
HSLhsl(225, 70%, 40%)
HSVhsv(225, 82%, 68%)
CMYKcmyk(82.2%, 62.1%, 0%, 31.8%)
CIE-LABlab(32.35, 28.80, -60.94)
CIE-LCHlch(32.35, 67.40, 295.30°)
OKLaboklab(42.77% -0.0141 -0.1763)
OKLCHoklch(42.77% 0.177 265.4)
XYZxyz(10.1506, 7.2425, 40.8992)
Luminance0.0724 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F42AE #AE8B1F
analogous
#1F89AE #1F42AE #441FAE
triadic
#1F42AE #AE1F42 #42AE1F
tetradic
#1F42AE #AE1F89 #AE8B1F #1FAE44
square
#1F42AE #AE1F89 #AE8B1F #1FAE44
split-complementary
#1F42AE #AE441F #89AE1F
monochromatic
#0C1B46 #162E7A #1F42AE #305ADA #6483E3

Accessibility & contrast

On white

8.58
#1F42AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#1F42AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F42AE
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F42AE#FFFFFF#000000##FFFFFF
##1F42AE1.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B2
Deuteranopia (green-blind)
#0046AC
Tritanopia (blue-blind)
#005E71
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #1f42ae;
/* rgb */ color: rgb(31, 66, 174);
/* oklch */ color: oklch(42.8% 0.177 265.4);
Tailwind
colors: {
  custom: {
    50: '#7476c7',
    500: '#1f42ae',
    950: '#000000',
  },
}
SCSS
$custom: #1f42ae;
$custom-light: #7476c7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f42ae",
  "rgb": {
    "r": 31,
    "g": 66,
    "b": 174
  },
  "hsl": {
    "h": 225.315,
    "s": 69.756,
    "l": 40.196
  },
  "oklch": {
    "l": 0.4277,
    "c": 0.17691,
    "h": 265.4
  },
  "luminance": 0.07244
}

Semantic roles & 50–950 ramp

primary
#1F42AE
secondary
#C8AF60
accent
#C13BED
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #1F42AE

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

Preview Lab → · Contrast checker → · Palette generator →

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