#1F5CB3#1F5CB3

#1F5CB3 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 48.6% C 0.152 H 258.2°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#1F5CB3
RGBrgb(31, 92, 179)
HSLhsl(215, 70%, 41%)
HSVhsv(215, 83%, 70%)
CMYKcmyk(82.7%, 48.6%, 0%, 29.8%)
CIE-LABlab(39.91, 13.44, -51.62)
CIE-LCHlch(39.91, 53.34, 284.59°)
OKLaboklab(48.61% -0.031 -0.1485)
OKLCHoklch(48.61% 0.152 258.2)
XYZxyz(12.5259, 11.1987, 44.1405)
Luminance0.1120 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5CB3 #B3761F
analogous
#1FA6B3 #1F5CB3 #2C1FB3
triadic
#1F5CB3 #B31F5C #5CB31F
tetradic
#1F5CB3 #B31FA6 #B3761F #1FB32C
square
#1F5CB3 #B31FA6 #B3761F #1FB32C
split-complementary
#1F5CB3 #B32C1F #A6B31F
monochromatic
#0D264B #16417F #1F5CB3 #3379DC #689BE5

Accessibility & contrast

On white

6.48
#1F5CB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#1F5CB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5CB3
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5CB3#FFFFFF#000000##FFFFFF
##1F5CB31.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2965B6
Deuteranopia (green-blind)
#0058B1
Tritanopia (blue-blind)
#00717F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #1f5cb3;
/* rgb */ color: rgb(31, 92, 179);
/* oklch */ color: oklch(48.6% 0.152 258.2);
Tailwind
colors: {
  custom: {
    50: '#7489ca',
    500: '#1f5cb3',
    950: '#000000',
  },
}
SCSS
$custom: #1f5cb3;
$custom-light: #7489ca;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5cb3",
  "rgb": {
    "r": 31,
    "g": 92,
    "b": 179
  },
  "hsl": {
    "h": 215.27,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.48613,
    "c": 0.15167,
    "h": 258.2
  },
  "luminance": 0.112
}

Semantic roles & 50–950 ramp

primary
#1F5CB3
secondary
#CAA064
accent
#A43BED
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #1F5CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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