#1F52A1#1F52A1

#1F52A1 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.1% C 0.139 H 259.2°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#1F52A1
RGBrgb(31, 82, 161)
HSLhsl(216, 68%, 38%)
HSVhsv(216, 81%, 63%)
CMYKcmyk(80.7%, 49.1%, 0%, 36.9%)
CIE-LABlab(35.79, 12.93, -47.59)
CIE-LCHlch(35.79, 49.31, 285.20°)
OKLaboklab(45.05% -0.0261 -0.1368)
OKLCHoklch(45.05% 0.139 259.2)
XYZxyz(10.0130, 8.8979, 34.9010)
Luminance0.0890 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F52A1 #A16E1F
analogous
#1F93A1 #1F52A1 #2D1FA1
triadic
#1F52A1 #A11F52 #52A11F
tetradic
#1F52A1 #A11F93 #A16E1F #1FA12D
square
#1F52A1 #A11F93 #A16E1F #1FA12D
split-complementary
#1F52A1 #A12D1F #93A11F
monochromatic
#0B1E3A #15386E #1F52A1 #296CD4 #5B8FDF

Accessibility & contrast

On white

7.55
#1F52A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#1F52A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F52A1
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F52A1#FFFFFF#000000##FFFFFF
##1F52A11.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245AA4
Deuteranopia (green-blind)
#004F9F
Tritanopia (blue-blind)
#006572
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #1f52a1;
/* rgb */ color: rgb(31, 82, 161);
/* oklch */ color: oklch(45.1% 0.139 259.2);
Tailwind
colors: {
  custom: {
    50: '#7082bd',
    500: '#1f52a1',
    950: '#000000',
  },
}
SCSS
$custom: #1f52a1;
$custom-light: #7082bd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f52a1",
  "rgb": {
    "r": 31,
    "g": 82,
    "b": 161
  },
  "hsl": {
    "h": 216.462,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45051,
    "c": 0.13929,
    "h": 259.2
  },
  "luminance": 0.08899
}

Semantic roles & 50–950 ramp

primary
#1F52A1
secondary
#C49958
accent
#A73DEB
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1F52A1

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

Preview Lab → · Contrast checker → · Palette generator →

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