#1F58AC#1F58AC

#1F58AC is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.2% C 0.147 H 258.6°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#1F58AC
RGBrgb(31, 88, 172)
HSLhsl(216, 69%, 40%)
HSVhsv(216, 82%, 67%)
CMYKcmyk(82%, 48.8%, 0%, 32.5%)
CIE-LABlab(38.28, 13.31, -50.12)
CIE-LCHlch(38.28, 51.85, 284.87°)
OKLaboklab(47.21% -0.0291 -0.1441)
OKLCHoklch(47.21% 0.147 258.6)
XYZxyz(11.4985, 10.2479, 40.3937)
Luminance0.1025 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F58AC #AC731F
analogous
#1F9EAC #1F58AC #2D1FAC
triadic
#1F58AC #AC1F58 #58AC1F
tetradic
#1F58AC #AC1F9E #AC731F #1FAC2D
square
#1F58AC #AC1F9E #AC731F #1FAC2D
split-complementary
#1F58AC #AC2D1F #9EAC1F
monochromatic
#0C2344 #163D78 #1F58AC #2F74D9 #6396E3

Accessibility & contrast

On white

6.89
#1F58AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#1F58AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F58AC
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F58AC#FFFFFF#000000##FFFFFF
##1F58AC1.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2761AF
Deuteranopia (green-blind)
#0054AA
Tritanopia (blue-blind)
#006C79
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #1f58ac;
/* rgb */ color: rgb(31, 88, 172);
/* oklch */ color: oklch(47.2% 0.147 258.6);
Tailwind
colors: {
  custom: {
    50: '#7386c5',
    500: '#1f58ac',
    950: '#000000',
  },
}
SCSS
$custom: #1f58ac;
$custom-light: #7386c5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f58ac",
  "rgb": {
    "r": 31,
    "g": 88,
    "b": 172
  },
  "hsl": {
    "h": 215.745,
    "s": 69.458,
    "l": 39.804
  },
  "oklch": {
    "l": 0.47209,
    "c": 0.14703,
    "h": 258.6
  },
  "luminance": 0.10249
}

Semantic roles & 50–950 ramp

primary
#1F58AC
secondary
#C89D5F
accent
#A53CEC
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#090B13
muted
#7B7C82

Preview Lab

Preview with #1F58AC

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

Preview Lab → · Contrast checker → · Palette generator →

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