#1F45A8#1F45A8

#1F45A8 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.8% C 0.165 H 264.4°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#1F45A8
RGBrgb(31, 69, 168)
HSLhsl(223, 69%, 39%)
HSVhsv(223, 82%, 66%)
CMYKcmyk(81.5%, 58.9%, 0%, 34.1%)
CIE-LABlab(32.64, 24.46, -56.88)
CIE-LCHlch(32.64, 61.92, 293.27°)
OKLaboklab(42.83% -0.0161 -0.1644)
OKLCHoklch(42.83% 0.165 264.4)
XYZxyz(9.7586, 7.3735, 37.9471)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F45A8 #A8821F
analogous
#1F8AA8 #1F45A8 #3E1FA8
triadic
#1F45A8 #A81F45 #45A81F
tetradic
#1F45A8 #A81F8A #A8821F #1FA83E
square
#1F45A8 #A81F8A #A8821F #1FA83E
split-complementary
#1F45A8 #A83E1F #8AA81F
monochromatic
#0C1B41 #153074 #1F45A8 #2C5CD8 #6084E2

Accessibility & contrast

On white

8.48
#1F45A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#1F45A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F45A8
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F45A8#FFFFFF#000000##FFFFFF
##1F45A81.008.482.478.48
#FFFFFF8.481.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AB
Deuteranopia (green-blind)
#0047A6
Tritanopia (blue-blind)
#005E6F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #1f45a8;
/* rgb */ color: rgb(31, 69, 168);
/* oklch */ color: oklch(42.8% 0.165 264.4);
Tailwind
colors: {
  custom: {
    50: '#7378c3',
    500: '#1f45a8',
    950: '#000000',
  },
}
SCSS
$custom: #1f45a8;
$custom-light: #7378c3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f45a8",
  "rgb": {
    "r": 31,
    "g": 69,
    "b": 168
  },
  "hsl": {
    "h": 223.358,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42829,
    "c": 0.16517,
    "h": 264.4
  },
  "luminance": 0.07375
}

Semantic roles & 50–950 ramp

primary
#1F45A8
secondary
#C6A95D
accent
#BB3CEC
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090813
muted
#7B7B82

Preview Lab

Preview with #1F45A8

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

Preview Lab → · Contrast checker → · Palette generator →

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