#1F52AC#1F52AC

#1F52AC is a mid, vivid blue. Relative luminance 0.093; OKLCH L 45.9% C 0.154 H 260.8°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#1F52AC
RGBrgb(31, 82, 172)
HSLhsl(218, 69%, 40%)
HSVhsv(218, 82%, 67%)
CMYKcmyk(82%, 52.3%, 0%, 32.5%)
CIE-LABlab(36.56, 17.30, -52.90)
CIE-LCHlch(36.56, 55.65, 288.11°)
OKLaboklab(45.89% -0.0246 -0.1524)
OKLCHoklch(45.89% 0.154 260.8)
XYZxyz(11.0261, 9.3031, 40.2363)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F52AC #AC791F
analogous
#1F98AC #1F52AC #331FAC
triadic
#1F52AC #AC1F52 #52AC1F
tetradic
#1F52AC #AC1F98 #AC791F #1FAC33
square
#1F52AC #AC1F98 #AC791F #1FAC33
split-complementary
#1F52AC #AC331F #98AC1F
monochromatic
#0C2144 #163978 #1F52AC #2F6CD9 #6391E3

Accessibility & contrast

On white

7.34
#1F52AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#1F52AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F52AC
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F52AC#FFFFFF#000000##FFFFFF
##1F52AC1.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#135DAF
Deuteranopia (green-blind)
#0050AA
Tritanopia (blue-blind)
#006877
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #1f52ac;
/* rgb */ color: rgb(31, 82, 172);
/* oklch */ color: oklch(45.9% 0.154 260.8);
Tailwind
colors: {
  custom: {
    50: '#7381c5',
    500: '#1f52ac',
    950: '#000000',
  },
}
SCSS
$custom: #1f52ac;
$custom-light: #7381c5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f52ac",
  "rgb": {
    "r": 31,
    "g": 82,
    "b": 172
  },
  "hsl": {
    "h": 218.298,
    "s": 69.458,
    "l": 39.804
  },
  "oklch": {
    "l": 0.45891,
    "c": 0.15442,
    "h": 260.8
  },
  "luminance": 0.09304
}

Semantic roles & 50–950 ramp

primary
#1F52AC
secondary
#C8A25F
accent
#AC3CEC
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#090A13
muted
#7B7C82

Preview Lab

Preview with #1F52AC

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

Preview Lab → · Contrast checker → · Palette generator →

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