#1F45A1#1F45A1

#1F45A1 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.2% C 0.156 H 263.9°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#1F45A1
RGBrgb(31, 69, 161)
HSLhsl(222, 68%, 38%)
HSVhsv(222, 81%, 63%)
CMYKcmyk(80.7%, 57.1%, 0%, 36.9%)
CIE-LABlab(32.08, 21.71, -53.59)
CIE-LCHlch(32.08, 57.82, 292.05°)
OKLaboklab(42.23% -0.0165 -0.1547)
OKLCHoklch(42.23% 0.156 263.9)
XYZxyz(9.1239, 7.1197, 34.6047)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F45A1 #A17B1F
analogous
#1F86A1 #1F45A1 #3A1FA1
triadic
#1F45A1 #A11F45 #45A11F
tetradic
#1F45A1 #A11F86 #A17B1F #1FA13A
square
#1F45A1 #A11F86 #A17B1F #1FA13A
split-complementary
#1F45A1 #A13A1F #86A11F
monochromatic
#0B193A #152F6E #1F45A1 #295BD4 #5B82DF

Accessibility & contrast

On white

8.66
#1F45A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#1F45A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F45A1
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F45A1#FFFFFF#000000##FFFFFF
##1F45A11.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A4
Deuteranopia (green-blind)
#00469F
Tritanopia (blue-blind)
#005C6C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1f45a1;
/* rgb */ color: rgb(31, 69, 161);
/* oklch */ color: oklch(42.2% 0.156 263.9);
Tailwind
colors: {
  custom: {
    50: '#7178be',
    500: '#1f45a1',
    950: '#000000',
  },
}
SCSS
$custom: #1f45a1;
$custom-light: #7178be;
$custom-dark: #000000;
JSON
{
  "hex": "#1f45a1",
  "rgb": {
    "r": 31,
    "g": 69,
    "b": 161
  },
  "hsl": {
    "h": 222.462,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.42228,
    "c": 0.15561,
    "h": 263.9
  },
  "luminance": 0.07121
}

Semantic roles & 50–950 ramp

primary
#1F45A1
secondary
#C4A458
accent
#B83DEB
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1F45A1

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

Preview Lab → · Contrast checker → · Palette generator →

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