#4148EA#4148EA

#4148EA is a mid, highly saturated blue. Relative luminance 0.117; OKLCH L 51.0% C 0.237 H 272.4°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#4148EA
RGBrgb(65, 72, 234)
HSLhsl(238, 80%, 59%)
HSVhsv(238, 72%, 92%)
CMYKcmyk(72.2%, 69.2%, 0%, 8.2%)
CIE-LABlab(40.73, 49.58, -81.95)
CIE-LCHlch(40.73, 95.78, 301.17°)
OKLaboklab(50.97% 0.0099 -0.2371)
OKLCHoklch(50.97% 0.237 272.4)
XYZxyz(19.3436, 11.6971, 79.0643)
Luminance0.1170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4148EA #EAE341
analogous
#419CEA #4148EA #8E41EA
triadic
#4148EA #EA4148 #48EA41
tetradic
#4148EA #EA419C #EAE341 #41EA8E
square
#4148EA #EA419C #EAE341 #41EA8E
split-complementary
#4148EA #EA8E41 #9CEA41
monochromatic
#12179F #1820D6 #4148EA #787DF0 #AFB2F6

Accessibility & contrast

On white

6.29
#4148EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#4148EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4148EA
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4148EA#FFFFFF#000000##FFFFFF
##4148EA1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068EF
Deuteranopia (green-blind)
#0058E7
Tritanopia (blue-blind)
#007594
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4148ea;
/* rgb */ color: rgb(65, 72, 234);
/* oklch */ color: oklch(51.0% 0.237 272.4);
Tailwind
colors: {
  custom: {
    50: '#8d7cf2',
    500: '#4148ea',
    950: '#000000',
  },
}
SCSS
$custom: #4148ea;
$custom-light: #8d7cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#4148ea",
  "rgb": {
    "r": 65,
    "g": 72,
    "b": 234
  },
  "hsl": {
    "h": 237.515,
    "s": 80.095,
    "l": 58.627
  },
  "oklch": {
    "l": 0.50966,
    "c": 0.23729,
    "h": 272.4
  },
  "luminance": 0.11699
}

Semantic roles & 50–950 ramp

primary
#4148EA
secondary
#E5E2A2
accent
#EE31F7
background
#F9F7FF
surface
#F2EEFE
border
#CCC9D6
text
#0E0917
muted
#7E7B85

Preview Lab

Preview with #4148EA

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

Preview Lab → · Contrast checker → · Palette generator →

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