#1F45AE#1F45AE

#1F45AE is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.4% C 0.173 H 264.7°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#1F45AE
RGBrgb(31, 69, 174)
HSLhsl(224, 70%, 40%)
HSVhsv(224, 82%, 68%)
CMYKcmyk(82.2%, 60.3%, 0%, 31.8%)
CIE-LABlab(33.14, 26.80, -59.65)
CIE-LCHlch(33.14, 65.40, 294.20°)
OKLaboklab(43.36% -0.0159 -0.1725)
OKLCHoklch(43.36% 0.173 264.7)
XYZxyz(10.3305, 7.6023, 40.9591)
Luminance0.0760 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F45AE #AE881F
analogous
#1F8CAE #1F45AE #411FAE
triadic
#1F45AE #AE1F45 #45AE1F
tetradic
#1F45AE #AE1F8C #AE881F #1FAE41
square
#1F45AE #AE1F8C #AE881F #1FAE41
split-complementary
#1F45AE #AE411F #8CAE1F
monochromatic
#0C1C46 #16307A #1F45AE #305DDA #6486E3

Accessibility & contrast

On white

8.33
#1F45AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#1F45AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F45AE
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F45AE#FFFFFF#000000##FFFFFF
##1F45AE1.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B1
Deuteranopia (green-blind)
#0048AC
Tritanopia (blue-blind)
#006072
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1f45ae;
/* rgb */ color: rgb(31, 69, 174);
/* oklch */ color: oklch(43.4% 0.173 264.7);
Tailwind
colors: {
  custom: {
    50: '#7478c7',
    500: '#1f45ae',
    950: '#000000',
  },
}
SCSS
$custom: #1f45ae;
$custom-light: #7478c7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f45ae",
  "rgb": {
    "r": 31,
    "g": 69,
    "b": 174
  },
  "hsl": {
    "h": 224.056,
    "s": 69.756,
    "l": 40.196
  },
  "oklch": {
    "l": 0.43357,
    "c": 0.17325,
    "h": 264.7
  },
  "luminance": 0.07604
}

Semantic roles & 50–950 ramp

primary
#1F45AE
secondary
#C8AD60
accent
#BD3BED
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #1F45AE

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

Preview Lab → · Contrast checker → · Palette generator →

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