#4154CB#4154CB

#4154CB is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.2% C 0.185 H 271.2°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#4154CB
RGBrgb(65, 84, 203)
HSLhsl(232, 57%, 53%)
HSVhsv(232, 68%, 80%)
CMYKcmyk(68%, 58.6%, 0%, 20.4%)
CIE-LABlab(40.86, 31.73, -64.02)
CIE-LCHlch(40.86, 71.45, 296.37°)
OKLaboklab(50.25% 0.004 -0.1845)
OKLCHoklch(50.25% 0.185 271.2)
XYZxyz(16.1261, 11.7747, 57.9112)
Luminance0.1178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4154CB #CBB841
analogous
#4199CB #4154CB #7341CB
triadic
#4154CB #CB4154 #54CB41
tetradic
#4154CB #CB4199 #CBB841 #41CB73
square
#4154CB #CB4199 #CBB841 #41CB73
split-complementary
#4154CB #CB7341 #99CB41
monochromatic
#1F2B72 #2C3DA2 #4154CB #717FD8 #A1AAE5

Accessibility & contrast

On white

6.26
#4154CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#4154CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4154CB
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4154CB#FFFFFF#000000##FFFFFF
##4154CB1.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CF
Deuteranopia (green-blind)
#005AC9
Tritanopia (blue-blind)
#007187
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4154cb;
/* rgb */ color: rgb(65, 84, 203);
/* oklch */ color: oklch(50.2% 0.185 271.2);
Tailwind
colors: {
  custom: {
    50: '#8684dc',
    500: '#4154cb',
    950: '#000000',
  },
}
SCSS
$custom: #4154cb;
$custom-light: #8684dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4154cb",
  "rgb": {
    "r": 65,
    "g": 84,
    "b": 203
  },
  "hsl": {
    "h": 231.739,
    "s": 57.025,
    "l": 52.549
  },
  "oklch": {
    "l": 0.5025,
    "c": 0.18451,
    "h": 271.2
  },
  "luminance": 0.11776
}

Semantic roles & 50–950 ramp

primary
#4154CB
secondary
#D2CA96
accent
#CB48E0
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #4154CB

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

Preview Lab → · Contrast checker → · Palette generator →

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