#1F45AB#1F45AB

#1F45AB is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.1% C 0.169 H 264.6°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#1F45AB
RGBrgb(31, 69, 171)
HSLhsl(224, 69%, 40%)
HSVhsv(224, 82%, 67%)
CMYKcmyk(81.9%, 59.6%, 0%, 32.9%)
CIE-LABlab(32.89, 25.63, -58.27)
CIE-LCHlch(32.89, 63.66, 293.75°)
OKLaboklab(43.09% -0.016 -0.1685)
OKLCHoklch(43.09% 0.169 264.6)
XYZxyz(10.0413, 7.4866, 39.4360)
Luminance0.0749 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F45AB #AB851F
analogous
#1F8BAB #1F45AB #3F1FAB
triadic
#1F45AB #AB1F45 #45AB1F
tetradic
#1F45AB #AB1F8B #AB851F #1FAB3F
square
#1F45AB #AB1F8B #AB851F #1FAB3F
split-complementary
#1F45AB #AB3F1F #8BAB1F
monochromatic
#0C1B43 #163077 #1F45AB #2E5DD9 #6285E3

Accessibility & contrast

On white

8.41
#1F45AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#1F45AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F45AB
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F45AB#FFFFFF#000000##FFFFFF
##1F45AB1.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AE
Deuteranopia (green-blind)
#0047A9
Tritanopia (blue-blind)
#005F71
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #1f45ab;
/* rgb */ color: rgb(31, 69, 171);
/* oklch */ color: oklch(43.1% 0.169 264.6);
Tailwind
colors: {
  custom: {
    50: '#7378c5',
    500: '#1f45ab',
    950: '#000000',
  },
}
SCSS
$custom: #1f45ab;
$custom-light: #7378c5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f45ab",
  "rgb": {
    "r": 31,
    "g": 69,
    "b": 171
  },
  "hsl": {
    "h": 223.714,
    "s": 69.307,
    "l": 39.608
  },
  "oklch": {
    "l": 0.43092,
    "c": 0.16922,
    "h": 264.6
  },
  "luminance": 0.07488
}

Semantic roles & 50–950 ramp

primary
#1F45AB
secondary
#C7AB5E
accent
#BC3CEC
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #1F45AB

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

Preview Lab → · Contrast checker → · Palette generator →

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