#1F52A5#1F52A5

#1F52A5 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.4% C 0.145 H 259.8°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#1F52A5
RGBrgb(31, 82, 165)
HSLhsl(217, 68%, 38%)
HSVhsv(217, 81%, 65%)
CMYKcmyk(81.2%, 50.3%, 0%, 35.3%)
CIE-LABlab(36.06, 14.52, -49.53)
CIE-LCHlch(36.06, 51.62, 286.33°)
OKLaboklab(45.35% -0.0255 -0.1425)
OKLCHoklch(45.35% 0.145 259.8)
XYZxyz(10.3714, 9.0413, 36.7885)
Luminance0.0904 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F52A5 #A5721F
analogous
#1F95A5 #1F52A5 #2F1FA5
triadic
#1F52A5 #A51F52 #52A51F
tetradic
#1F52A5 #A51F95 #A5721F #1FA52F
square
#1F52A5 #A51F95 #A5721F #1FA52F
split-complementary
#1F52A5 #A52F1F #95A51F
monochromatic
#0C1F3E #153871 #1F52A5 #2A6CD7 #5E90E1

Accessibility & contrast

On white

7.48
#1F52A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#1F52A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F52A5
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F52A5#FFFFFF#000000##FFFFFF
##1F52A51.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5BA8
Deuteranopia (green-blind)
#004FA3
Tritanopia (blue-blind)
#006673
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #1f52a5;
/* rgb */ color: rgb(31, 82, 165);
/* oklch */ color: oklch(45.4% 0.145 259.8);
Tailwind
colors: {
  custom: {
    50: '#7182c0',
    500: '#1f52a5',
    950: '#000000',
  },
}
SCSS
$custom: #1f52a5;
$custom-light: #7182c0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f52a5",
  "rgb": {
    "r": 31,
    "g": 82,
    "b": 165
  },
  "hsl": {
    "h": 217.164,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.45352,
    "c": 0.14482,
    "h": 259.8
  },
  "luminance": 0.09043
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F52A5

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

Preview Lab → · Contrast checker → · Palette generator →

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