#1F4EC2#1F4EC2

#1F4EC2 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.9% C 0.189 H 263.8°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#1F4EC2
RGBrgb(31, 78, 194)
HSLhsl(223, 72%, 44%)
HSVhsv(223, 84%, 76%)
CMYKcmyk(84%, 59.8%, 0%, 23.9%)
CIE-LABlab(37.18, 28.56, -64.85)
CIE-LCHlch(37.18, 70.86, 293.77°)
OKLaboklab(46.89% -0.0204 -0.1876)
OKLCHoklch(46.89% 0.189 263.8)
XYZxyz(13.0236, 9.6335, 52.2015)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4EC2 #C2931F
analogous
#1FA0C2 #1F4EC2 #411FC2
triadic
#1F4EC2 #C21F4E #4EC21F
tetradic
#1F4EC2 #C21FA0 #C2931F #1FC241
square
#1F4EC2 #C21FA0 #C2931F #1FC241
split-complementary
#1F4EC2 #C2411F #A0C21F
monochromatic
#0E2458 #17398D #1F4EC2 #3E6DE0 #7395E9

Accessibility & contrast

On white

7.17
#1F4EC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#1F4EC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4EC2
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4EC2#FFFFFF#000000##FFFFFF
##1F4EC21.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC6
Deuteranopia (green-blind)
#0050C0
Tritanopia (blue-blind)
#006C80
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #1f4ec2;
/* rgb */ color: rgb(31, 78, 194);
/* oklch */ color: oklch(46.9% 0.189 263.8);
Tailwind
colors: {
  custom: {
    50: '#797fd5',
    500: '#1f4ec2',
    950: '#000000',
  },
}
SCSS
$custom: #1f4ec2;
$custom-light: #797fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4ec2",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 194
  },
  "hsl": {
    "h": 222.699,
    "s": 72.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.4689,
    "c": 0.18873,
    "h": 263.8
  },
  "luminance": 0.09635
}

Semantic roles & 50–950 ramp

primary
#1F4EC2
secondary
#CFB36D
accent
#BB39EF
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #1F4EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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