#4148CA#4148CA

#4148CA is a mid, vivid blue. Relative luminance 0.100; OKLCH L 48.0% C 0.198 H 273.8°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#4148CA
RGBrgb(65, 72, 202)
HSLhsl(237, 56%, 52%)
HSVhsv(237, 68%, 79%)
CMYKcmyk(67.8%, 64.4%, 0%, 20.8%)
CIE-LABlab(37.88, 38.88, -68.29)
CIE-LCHlch(37.88, 78.58, 299.65°)
OKLaboklab(48.03% 0.0132 -0.1971)
OKLCHoklch(48.03% 0.198 273.8)
XYZxyz(15.1545, 10.0214, 57.0014)
Luminance0.1002 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4148CA #CAC341
analogous
#418DCA #4148CA #7E41CA
triadic
#4148CA #CA4148 #48CA41
tetradic
#4148CA #CA418D #CAC341 #41CA7E
square
#4148CA #CA418D #CAC341 #41CA7E
split-complementary
#4148CA #CA7E41 #8DCA41
monochromatic
#202471 #2D33A1 #4148CA #7176D7 #A1A4E5

Accessibility & contrast

On white

6.99
#4148CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#4148CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4148CA
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4148CA#FFFFFF#000000##FFFFFF
##4148CA1.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCE
Deuteranopia (green-blind)
#0053C8
Tritanopia (blue-blind)
#006A82
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4148ca;
/* rgb */ color: rgb(65, 72, 202);
/* oklch */ color: oklch(48.0% 0.198 273.8);
Tailwind
colors: {
  custom: {
    50: '#877bdb',
    500: '#4148ca',
    950: '#000000',
  },
}
SCSS
$custom: #4148ca;
$custom-light: #877bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#4148ca",
  "rgb": {
    "r": 65,
    "g": 72,
    "b": 202
  },
  "hsl": {
    "h": 236.934,
    "s": 56.379,
    "l": 52.353
  },
  "oklch": {
    "l": 0.48032,
    "c": 0.19757,
    "h": 273.8
  },
  "luminance": 0.10023
}

Semantic roles & 50–950 ramp

primary
#4148CA
secondary
#D1CE96
accent
#D848E0
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4148CA

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

Preview Lab → · Contrast checker → · Palette generator →

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