#1F52A6#1F52A6

#1F52A6 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.4% C 0.146 H 260.0°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#1F52A6
RGBrgb(31, 82, 166)
HSLhsl(217, 69%, 39%)
HSVhsv(217, 81%, 65%)
CMYKcmyk(81.3%, 50.6%, 0%, 34.9%)
CIE-LABlab(36.13, 14.92, -50.02)
CIE-LCHlch(36.13, 52.19, 286.60°)
OKLaboklab(45.43% -0.0254 -0.144)
OKLCHoklch(45.43% 0.146 260)
XYZxyz(10.4628, 9.0778, 37.2698)
Luminance0.0908 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F52A6 #A6731F
analogous
#1F95A6 #1F52A6 #2F1FA6
triadic
#1F52A6 #A61F52 #52A61F
tetradic
#1F52A6 #A61F95 #A6731F #1FA62F
square
#1F52A6 #A61F95 #A6731F #1FA62F
split-complementary
#1F52A6 #A62F1F #95A61F
monochromatic
#0C1F3F #153972 #1F52A6 #2B6CD7 #5E90E1

Accessibility & contrast

On white

7.46
#1F52A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#1F52A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F52A6
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F52A6#FFFFFF#000000##FFFFFF
##1F52A61.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5BA9
Deuteranopia (green-blind)
#004FA4
Tritanopia (blue-blind)
#006674
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #1f52a6;
/* rgb */ color: rgb(31, 82, 166);
/* oklch */ color: oklch(45.4% 0.146 260.0);
Tailwind
colors: {
  custom: {
    50: '#7182c1',
    500: '#1f52a6',
    950: '#000000',
  },
}
SCSS
$custom: #1f52a6;
$custom-light: #7182c1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f52a6",
  "rgb": {
    "r": 31,
    "g": 82,
    "b": 166
  },
  "hsl": {
    "h": 217.333,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.45428,
    "c": 0.14619,
    "h": 260
  },
  "luminance": 0.09079
}

Semantic roles & 50–950 ramp

primary
#1F52A6
secondary
#C59D5B
accent
#A93CEB
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1F52A6

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

Preview Lab → · Contrast checker → · Palette generator →

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