#4151CA#4151CA

#4151CA is a mid, vivid blue. Relative luminance 0.113; OKLCH L 49.6% C 0.187 H 271.9°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#4151CA
RGBrgb(65, 81, 202)
HSLhsl(233, 56%, 52%)
HSVhsv(233, 68%, 79%)
CMYKcmyk(67.8%, 59.9%, 0%, 20.8%)
CIE-LABlab(40.03, 33.28, -64.78)
CIE-LCHlch(40.03, 72.82, 297.19°)
OKLaboklab(49.62% 0.0063 -0.1867)
OKLCHoklch(49.62% 0.187 271.9)
XYZxyz(15.7795, 11.2715, 57.2097)
Luminance0.1127 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4151CA #CABA41
analogous
#4195CA #4151CA #7641CA
triadic
#4151CA #CA4151 #51CA41
tetradic
#4151CA #CA4195 #CABA41 #41CA76
square
#4151CA #CA4195 #CABA41 #41CA76
split-complementary
#4151CA #CA7641 #95CA41
monochromatic
#202971 #2D3AA1 #4151CA #717DD7 #A1A9E5

Accessibility & contrast

On white

6.45
#4151CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#4151CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4151CA
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4151CA#FFFFFF#000000##FFFFFF
##4151CA1.006.453.256.45
#FFFFFF6.451.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CE
Deuteranopia (green-blind)
#0058C8
Tritanopia (blue-blind)
#006F86
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4151ca;
/* rgb */ color: rgb(65, 81, 202);
/* oklch */ color: oklch(49.6% 0.187 271.9);
Tailwind
colors: {
  custom: {
    50: '#8681db',
    500: '#4151ca',
    950: '#000000',
  },
}
SCSS
$custom: #4151ca;
$custom-light: #8681db;
$custom-dark: #000000;
JSON
{
  "hex": "#4151ca",
  "rgb": {
    "r": 65,
    "g": 81,
    "b": 202
  },
  "hsl": {
    "h": 232.993,
    "s": 56.379,
    "l": 52.353
  },
  "oklch": {
    "l": 0.49616,
    "c": 0.18685,
    "h": 271.9
  },
  "luminance": 0.11273
}

Semantic roles & 50–950 ramp

primary
#4151CA
secondary
#D1CA96
accent
#CE48E0
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #4151CA

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

Preview Lab → · Contrast checker → · Palette generator →

#4151CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva