#4159CB#4159CB

#4159CB is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.2% C 0.178 H 270.0°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#4159CB
RGBrgb(65, 89, 203)
HSLhsl(230, 57%, 53%)
HSVhsv(230, 68%, 80%)
CMYKcmyk(68%, 56.2%, 0%, 20.4%)
CIE-LABlab(42.12, 28.56, -61.96)
CIE-LCHlch(42.12, 68.22, 294.75°)
OKLaboklab(51.19% -0.0001 -0.1784)
OKLCHoklch(51.19% 0.178 270)
XYZxyz(16.5282, 12.5788, 58.0452)
Luminance0.1258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4159CB #CBB341
analogous
#419ECB #4159CB #6E41CB
triadic
#4159CB #CB4159 #59CB41
tetradic
#4159CB #CB419E #CBB341 #41CB6E
square
#4159CB #CB419E #CBB341 #41CB6E
split-complementary
#4159CB #CB6E41 #9ECB41
monochromatic
#1F2E72 #2C41A2 #4159CB #7183D8 #A1ADE5

Accessibility & contrast

On white

5.97
#4159CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#4159CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4159CB
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4159CB#FFFFFF#000000##FFFFFF
##4159CB1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACF
Deuteranopia (green-blind)
#005DC9
Tritanopia (blue-blind)
#007589
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4159cb;
/* rgb */ color: rgb(65, 89, 203);
/* oklch */ color: oklch(51.2% 0.178 270.0);
Tailwind
colors: {
  custom: {
    50: '#8687dc',
    500: '#4159cb',
    950: '#000000',
  },
}
SCSS
$custom: #4159cb;
$custom-light: #8687dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4159cb",
  "rgb": {
    "r": 65,
    "g": 89,
    "b": 203
  },
  "hsl": {
    "h": 229.565,
    "s": 57.025,
    "l": 52.549
  },
  "oklch": {
    "l": 0.51194,
    "c": 0.17837,
    "h": 270
  },
  "luminance": 0.1258
}

Semantic roles & 50–950 ramp

primary
#4159CB
secondary
#D2C796
accent
#C648E0
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4159CB

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

Preview Lab → · Contrast checker → · Palette generator →

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