#1F57AC#1F57AC

#1F57AC is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.0% C 0.148 H 259.0°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#1F57AC
RGBrgb(31, 87, 172)
HSLhsl(216, 69%, 40%)
HSVhsv(216, 82%, 67%)
CMYKcmyk(82%, 49.4%, 0%, 32.5%)
CIE-LABlab(37.99, 13.97, -50.58)
CIE-LCHlch(37.99, 52.48, 285.44°)
OKLaboklab(46.99% -0.0283 -0.1455)
OKLCHoklch(46.99% 0.148 259)
XYZxyz(11.4169, 10.0849, 40.3666)
Luminance0.1009 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F57AC #AC741F
analogous
#1F9EAC #1F57AC #2D1FAC
triadic
#1F57AC #AC1F57 #57AC1F
tetradic
#1F57AC #AC1F9E #AC741F #1FAC2D
square
#1F57AC #AC1F9E #AC741F #1FAC2D
split-complementary
#1F57AC #AC2D1F #9EAC1F
monochromatic
#0C2344 #163D78 #1F57AC #2F73D9 #6396E3

Accessibility & contrast

On white

6.96
#1F57AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #1F57AC
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F57AC#FFFFFF#000000##FFFFFF
##1F57AC1.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2460AF
Deuteranopia (green-blind)
#0053AA
Tritanopia (blue-blind)
#006C79
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #1f57ac;
/* rgb */ color: rgb(31, 87, 172);
/* oklch */ color: oklch(47.0% 0.148 259.0);
Tailwind
colors: {
  custom: {
    50: '#7385c5',
    500: '#1f57ac',
    950: '#000000',
  },
}
SCSS
$custom: #1f57ac;
$custom-light: #7385c5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f57ac",
  "rgb": {
    "r": 31,
    "g": 87,
    "b": 172
  },
  "hsl": {
    "h": 216.17,
    "s": 69.458,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46987,
    "c": 0.14826,
    "h": 259
  },
  "luminance": 0.10086
}

Semantic roles & 50–950 ramp

primary
#1F57AC
secondary
#C89E5F
accent
#A63CEC
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#090B13
muted
#7B7C82

Preview Lab

Preview with #1F57AC

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

Preview Lab → · Contrast checker → · Palette generator →

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