#1F52A0#1F52A0

#1F52A0 is a dark, vivid blue. Relative luminance 0.089; OKLCH L 45.0% C 0.138 H 259.0°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#1F52A0
RGBrgb(31, 82, 160)
HSLhsl(216, 68%, 37%)
HSVhsv(216, 81%, 63%)
CMYKcmyk(80.6%, 48.8%, 0%, 37.3%)
CIE-LABlab(35.72, 12.53, -47.10)
CIE-LCHlch(35.72, 48.73, 284.89°)
OKLaboklab(44.98% -0.0263 -0.1354)
OKLCHoklch(44.98% 0.138 259)
XYZxyz(9.9252, 8.8628, 34.4385)
Luminance0.0886 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F52A0 #A06D1F
analogous
#1F93A0 #1F52A0 #2D1FA0
triadic
#1F52A0 #A01F52 #52A01F
tetradic
#1F52A0 #A01F93 #A06D1F #1FA02D
square
#1F52A0 #A01F93 #A06D1F #1FA02D
split-complementary
#1F52A0 #A02D1F #93A01F
monochromatic
#0B1D39 #15386D #1F52A0 #296CD3 #5A8FDF

Accessibility & contrast

On white

7.57
#1F52A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#1F52A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F52A0
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F52A0#FFFFFF#000000##FFFFFF
##1F52A01.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255AA3
Deuteranopia (green-blind)
#004F9E
Tritanopia (blue-blind)
#006571
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #1f52a0;
/* rgb */ color: rgb(31, 82, 160);
/* oklch */ color: oklch(45.0% 0.138 259.0);
Tailwind
colors: {
  custom: {
    50: '#7082bd',
    500: '#1f52a0',
    950: '#000000',
  },
}
SCSS
$custom: #1f52a0;
$custom-light: #7082bd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f52a0",
  "rgb": {
    "r": 31,
    "g": 82,
    "b": 160
  },
  "hsl": {
    "h": 216.279,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.44977,
    "c": 0.1379,
    "h": 259
  },
  "luminance": 0.08864
}

Semantic roles & 50–950 ramp

primary
#1F52A0
secondary
#C39958
accent
#A63DEA
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1F52A0

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

Preview Lab → · Contrast checker → · Palette generator →

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