#1F58A8#1F58A8

#1F58A8 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 46.9% C 0.142 H 257.9°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#1F58A8
RGBrgb(31, 88, 168)
HSLhsl(215, 69%, 39%)
HSVhsv(215, 82%, 66%)
CMYKcmyk(81.5%, 47.6%, 0%, 34.1%)
CIE-LABlab(38.02, 11.72, -48.18)
CIE-LCHlch(38.02, 49.58, 283.67°)
OKLaboklab(46.92% -0.0297 -0.1384)
OKLCHoklch(46.92% 0.142 257.9)
XYZxyz(11.1201, 10.0966, 38.4009)
Luminance0.1010 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F58A8 #A86F1F
analogous
#1F9DA8 #1F58A8 #2A1FA8
triadic
#1F58A8 #A81F58 #58A81F
tetradic
#1F58A8 #A81F9D #A86F1F #1FA82A
square
#1F58A8 #A81F9D #A86F1F #1FA82A
split-complementary
#1F58A8 #A82A1F #9DA81F
monochromatic
#0C2241 #153D74 #1F58A8 #2C74D8 #6096E2

Accessibility & contrast

On white

6.95
#1F58A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#1F58A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F58A8
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F58A8#FFFFFF#000000##FFFFFF
##1F58A81.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B60AB
Deuteranopia (green-blind)
#0054A6
Tritanopia (blue-blind)
#006B78
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #1f58a8;
/* rgb */ color: rgb(31, 88, 168);
/* oklch */ color: oklch(46.9% 0.142 257.9);
Tailwind
colors: {
  custom: {
    50: '#7286c2',
    500: '#1f58a8',
    950: '#000000',
  },
}
SCSS
$custom: #1f58a8;
$custom-light: #7286c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f58a8",
  "rgb": {
    "r": 31,
    "g": 88,
    "b": 168
  },
  "hsl": {
    "h": 215.036,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.46917,
    "c": 0.14158,
    "h": 257.9
  },
  "luminance": 0.10098
}

Semantic roles & 50–950 ramp

primary
#1F58A8
secondary
#C69A5D
accent
#A33CEC
background
#F7F8FC
surface
#EDEFF8
border
#C8CAD1
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #1F58A8

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

Preview Lab → · Contrast checker → · Palette generator →

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