#1F52A9#1F52A9

#1F52A9 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 45.7% C 0.150 H 260.4°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#1F52A9
RGBrgb(31, 82, 169)
HSLhsl(218, 69%, 39%)
HSVhsv(218, 82%, 66%)
CMYKcmyk(81.7%, 51.5%, 0%, 33.7%)
CIE-LABlab(36.35, 16.11, -51.46)
CIE-LCHlch(36.35, 53.92, 287.38°)
OKLaboklab(45.66% -0.025 -0.1482)
OKLCHoklch(45.66% 0.15 260.4)
XYZxyz(10.7412, 9.1892, 38.7360)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F52A9 #A9761F
analogous
#1F97A9 #1F52A9 #311FA9
triadic
#1F52A9 #A91F52 #52A91F
tetradic
#1F52A9 #A91F97 #A9761F #1FA931
square
#1F52A9 #A91F97 #A9761F #1FA931
split-complementary
#1F52A9 #A9311F #97A91F
monochromatic
#0C2042 #163975 #1F52A9 #2D6CD8 #6090E2

Accessibility & contrast

On white

7.40
#1F52A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#1F52A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F52A9
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F52A9#FFFFFF#000000##FFFFFF
##1F52A91.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#195CAC
Deuteranopia (green-blind)
#0050A7
Tritanopia (blue-blind)
#006775
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #1f52a9;
/* rgb */ color: rgb(31, 82, 169);
/* oklch */ color: oklch(45.7% 0.150 260.4);
Tailwind
colors: {
  custom: {
    50: '#7281c3',
    500: '#1f52a9',
    950: '#000000',
  },
}
SCSS
$custom: #1f52a9;
$custom-light: #7281c3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f52a9",
  "rgb": {
    "r": 31,
    "g": 82,
    "b": 169
  },
  "hsl": {
    "h": 217.826,
    "s": 69,
    "l": 39.216
  },
  "oklch": {
    "l": 0.45658,
    "c": 0.15031,
    "h": 260.4
  },
  "luminance": 0.0919
}

Semantic roles & 50–950 ramp

primary
#1F52A9
secondary
#C7A05D
accent
#AB3CEC
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#090A13
muted
#7B7C82

Preview Lab

Preview with #1F52A9

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

Preview Lab → · Contrast checker → · Palette generator →

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