#1F5EC2#1F5EC2

#1F5EC2 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.2% C 0.169 H 259.7°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#1F5EC2
RGBrgb(31, 94, 194)
HSLhsl(217, 72%, 44%)
HSVhsv(217, 84%, 76%)
CMYKcmyk(84%, 51.5%, 0%, 23.9%)
CIE-LABlab(41.52, 18.03, -57.79)
CIE-LCHlch(41.52, 60.54, 287.32°)
OKLaboklab(50.17% -0.0303 -0.1666)
OKLCHoklch(50.17% 0.169 259.7)
XYZxyz(14.3018, 12.1900, 52.6276)
Luminance0.1219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5EC2 #C2831F
analogous
#1FB0C2 #1F5EC2 #321FC2
triadic
#1F5EC2 #C21F5E #5EC21F
tetradic
#1F5EC2 #C21FB0 #C2831F #1FC232
square
#1F5EC2 #C21FB0 #C2831F #1FC232
split-complementary
#1F5EC2 #C2321F #B0C21F
monochromatic
#0E2B58 #17448D #1F5EC2 #3E7DE0 #73A0E9

Accessibility & contrast

On white

6.11
#1F5EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#1F5EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5EC2
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5EC2#FFFFFF#000000##FFFFFF
##1F5EC21.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#186AC6
Deuteranopia (green-blind)
#005BC0
Tritanopia (blue-blind)
#007687
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #1f5ec2;
/* rgb */ color: rgb(31, 94, 194);
/* oklch */ color: oklch(50.2% 0.169 259.7);
Tailwind
colors: {
  custom: {
    50: '#788ad5',
    500: '#1f5ec2',
    950: '#000000',
  },
}
SCSS
$custom: #1f5ec2;
$custom-light: #788ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5ec2",
  "rgb": {
    "r": 31,
    "g": 94,
    "b": 194
  },
  "hsl": {
    "h": 216.81,
    "s": 72.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.50172,
    "c": 0.16932,
    "h": 259.7
  },
  "luminance": 0.12192
}

Semantic roles & 50–950 ramp

primary
#1F5EC2
secondary
#CFAA6D
accent
#A939EF
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #1F5EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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