#5145F2#5145F2

#5145F2 is a mid, highly saturated blue. Relative luminance 0.124; OKLCH L 52.3% C 0.246 H 276.7°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#5145F2
RGBrgb(81, 69, 242)
HSLhsl(244, 87%, 61%)
HSVhsv(244, 71%, 95%)
CMYKcmyk(66.5%, 71.5%, 0%, 5.1%)
CIE-LABlab(41.87, 55.43, -84.56)
CIE-LCHlch(41.87, 101.11, 303.24°)
OKLaboklab(52.26% 0.0288 -0.2443)
OKLCHoklch(52.26% 0.246 276.7)
XYZxyz(21.5432, 12.4145, 85.2481)
Luminance0.1242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145F2 #E6F245
analogous
#458FF2 #5145F2 #A745F2
triadic
#5145F2 #F25145 #45F251
tetradic
#5145F2 #F2458F #E6F245 #45F2A7
square
#5145F2 #F2458F #E6F245 #45F2A7
split-complementary
#5145F2 #F2A745 #8FF245
monochromatic
#180CB0 #1F10E9 #5145F2 #877EF6 #BCB7FA

Accessibility & contrast

On white

6.03
#5145F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#5145F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5145F2
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145F2#FFFFFF#000000##FFFFFF
##5145F21.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AF7
Deuteranopia (green-blind)
#005BEF
Tritanopia (blue-blind)
#007697
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5145f2;
/* rgb */ color: rgb(81, 69, 242);
/* oklch */ color: oklch(52.3% 0.246 276.7);
Tailwind
colors: {
  custom: {
    50: '#967bf8',
    500: '#5145f2',
    950: '#000000',
  },
}
SCSS
$custom: #5145f2;
$custom-light: #967bf8;
$custom-dark: #000000;
JSON
{
  "hex": "#5145f2",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 242
  },
  "hsl": {
    "h": 244.162,
    "s": 86.935,
    "l": 60.98
  },
  "oklch": {
    "l": 0.52264,
    "c": 0.246,
    "h": 276.7
  },
  "luminance": 0.12416
}

Semantic roles & 50–950 ramp

primary
#5145F2
secondary
#E5EAA9
accent
#E302D4
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5145F2

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

Preview Lab → · Contrast checker → · Palette generator →

#5145F2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva