#1F5AC2#1F5AC2

#1F5AC2 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.3% C 0.174 H 260.9°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#1F5AC2
RGBrgb(31, 90, 194)
HSLhsl(218, 72%, 44%)
HSVhsv(218, 84%, 76%)
CMYKcmyk(84%, 53.6%, 0%, 23.9%)
CIE-LABlab(40.41, 20.65, -59.59)
CIE-LCHlch(40.41, 63.07, 289.11°)
OKLaboklab(49.33% -0.0276 -0.172)
OKLCHoklch(49.33% 0.174 260.9)
XYZxyz(13.9553, 11.4969, 52.5121)
Luminance0.1150 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5AC2 #C2871F
analogous
#1FACC2 #1F5AC2 #361FC2
triadic
#1F5AC2 #C21F5A #5AC21F
tetradic
#1F5AC2 #C21FAC #C2871F #1FC236
square
#1F5AC2 #C21FAC #C2871F #1FC236
split-complementary
#1F5AC2 #C2361F #ACC21F
monochromatic
#0E2958 #17428D #1F5AC2 #3E79E0 #739DE9

Accessibility & contrast

On white

6.36
#1F5AC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#1F5AC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5AC2
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5AC2#FFFFFF#000000##FFFFFF
##1F5AC21.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C6
Deuteranopia (green-blind)
#0058C0
Tritanopia (blue-blind)
#007485
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #1f5ac2;
/* rgb */ color: rgb(31, 90, 194);
/* oklch */ color: oklch(49.3% 0.174 260.9);
Tailwind
colors: {
  custom: {
    50: '#7887d5',
    500: '#1f5ac2',
    950: '#000000',
  },
}
SCSS
$custom: #1f5ac2;
$custom-light: #7887d5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5ac2",
  "rgb": {
    "r": 31,
    "g": 90,
    "b": 194
  },
  "hsl": {
    "h": 218.282,
    "s": 72.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.49325,
    "c": 0.17417,
    "h": 260.9
  },
  "luminance": 0.11499
}

Semantic roles & 50–950 ramp

primary
#1F5AC2
secondary
#CFAC6D
accent
#AD39EF
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #1F5AC2

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

Preview Lab → · Contrast checker → · Palette generator →

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