#4159D4#4159D4

#4159D4 is a mid, vivid blue. Relative luminance 0.130; OKLCH L 51.9% C 0.190 H 270.0°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#4159D4
RGBrgb(65, 89, 212)
HSLhsl(230, 63%, 54%)
HSVhsv(230, 69%, 83%)
CMYKcmyk(69.3%, 58%, 0%, 16.9%)
CIE-LABlab(42.79, 31.74, -66.04)
CIE-LCHlch(42.79, 73.27, 295.67°)
OKLaboklab(51.91% 0.0001 -0.1904)
OKLCHoklch(51.91% 0.19 270)
XYZxyz(17.6320, 13.0203, 63.8585)
Luminance0.1302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4159D4 #D4BC41
analogous
#41A3D4 #4159D4 #7341D4
triadic
#4159D4 #D44159 #59D441
tetradic
#4159D4 #D441A3 #D4BC41 #41D473
square
#4159D4 #D441A3 #D4BC41 #41D473
split-complementary
#4159D4 #D47341 #A3D441
monochromatic
#1D2C7E #283EB0 #4159D4 #7385DF #A5B0EB

Accessibility & contrast

On white

5.83
#4159D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#4159D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4159D4
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4159D4#FFFFFF#000000##FFFFFF
##4159D41.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD8
Deuteranopia (green-blind)
#005FD2
Tritanopia (blue-blind)
#00778E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #4159d4;
/* rgb */ color: rgb(65, 89, 212);
/* oklch */ color: oklch(51.9% 0.190 270.0);
Tailwind
colors: {
  custom: {
    50: '#8787e2',
    500: '#4159d4',
    950: '#000000',
  },
}
SCSS
$custom: #4159d4;
$custom-light: #8787e2;
$custom-dark: #000000;
JSON
{
  "hex": "#4159d4",
  "rgb": {
    "r": 65,
    "g": 89,
    "b": 212
  },
  "hsl": {
    "h": 230.204,
    "s": 63.09,
    "l": 54.314
  },
  "oklch": {
    "l": 0.51908,
    "c": 0.19037,
    "h": 270
  },
  "luminance": 0.13022
}

Semantic roles & 50–950 ramp

primary
#4159D4
secondary
#D8CD99
accent
#CB42E6
background
#F9F8FE
surface
#F1EFFC
border
#CBCAD5
text
#0D0B15
muted
#7E7C84

Preview Lab

Preview with #4159D4

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

Preview Lab → · Contrast checker → · Palette generator →

#4159D4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva