#1F52A8#1F52A8

#1F52A8 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 45.6% C 0.149 H 260.3°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#1F52A8
RGBrgb(31, 82, 168)
HSLhsl(218, 69%, 39%)
HSVhsv(218, 82%, 66%)
CMYKcmyk(81.5%, 51.2%, 0%, 34.1%)
CIE-LABlab(36.27, 15.71, -50.98)
CIE-LCHlch(36.27, 53.35, 287.13°)
OKLaboklab(45.58% -0.0251 -0.1468)
OKLCHoklch(45.58% 0.149 260.3)
XYZxyz(10.6477, 9.1518, 38.2435)
Luminance0.0915 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F52A8 #A8751F
analogous
#1F97A8 #1F52A8 #311FA8
triadic
#1F52A8 #A81F52 #52A81F
tetradic
#1F52A8 #A81F97 #A8751F #1FA831
square
#1F52A8 #A81F97 #A8751F #1FA831
split-complementary
#1F52A8 #A8311F #97A81F
monochromatic
#0C2041 #153974 #1F52A8 #2C6CD8 #6090E2

Accessibility & contrast

On white

7.42
#1F52A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#1F52A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F52A8
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F52A8#FFFFFF#000000##FFFFFF
##1F52A81.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B5CAB
Deuteranopia (green-blind)
#004FA6
Tritanopia (blue-blind)
#006775
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #1f52a8;
/* rgb */ color: rgb(31, 82, 168);
/* oklch */ color: oklch(45.6% 0.149 260.3);
Tailwind
colors: {
  custom: {
    50: '#7281c2',
    500: '#1f52a8',
    950: '#000000',
  },
}
SCSS
$custom: #1f52a8;
$custom-light: #7281c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f52a8",
  "rgb": {
    "r": 31,
    "g": 82,
    "b": 168
  },
  "hsl": {
    "h": 217.664,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.45581,
    "c": 0.14894,
    "h": 260.3
  },
  "luminance": 0.09153
}

Semantic roles & 50–950 ramp

primary
#1F52A8
secondary
#C69F5D
accent
#AA3CEC
background
#F7F7FC
surface
#EDEEF8
border
#C8C9D1
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1F52A8

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

Preview Lab → · Contrast checker → · Palette generator →

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