#4148C2#4148C2

#4148C2 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 47.3% C 0.187 H 274.2°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#4148C2
RGBrgb(65, 72, 194)
HSLhsl(237, 51%, 51%)
HSVhsv(237, 66%, 76%)
CMYKcmyk(66.5%, 62.9%, 0%, 23.9%)
CIE-LABlab(37.21, 36.15, -64.73)
CIE-LCHlch(37.21, 74.14, 299.18°)
OKLaboklab(47.33% 0.0137 -0.1867)
OKLCHoklch(47.33% 0.187 274.2)
XYZxyz(14.2317, 9.6523, 52.1416)
Luminance0.0965 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4148C2 #C2BB41
analogous
#4188C2 #4148C2 #7A41C2
triadic
#4148C2 #C24148 #48C241
tetradic
#4148C2 #C24188 #C2BB41 #41C27A
square
#4148C2 #C24188 #C2BB41 #41C27A
split-complementary
#4148C2 #C27A41 #88C241
monochromatic
#212567 #303696 #4148C2 #6F75D1 #9EA1E0

Accessibility & contrast

On white

7.17
#4148C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#4148C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4148C2
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4148C2#FFFFFF#000000##FFFFFF
##4148C21.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC6
Deuteranopia (green-blind)
#0052C0
Tritanopia (blue-blind)
#00677E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4148c2;
/* rgb */ color: rgb(65, 72, 194);
/* oklch */ color: oklch(47.3% 0.187 274.2);
Tailwind
colors: {
  custom: {
    50: '#857bd5',
    500: '#4148c2',
    950: '#000000',
  },
}
SCSS
$custom: #4148c2;
$custom-light: #857bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#4148c2",
  "rgb": {
    "r": 65,
    "g": 72,
    "b": 194
  },
  "hsl": {
    "h": 236.744,
    "s": 51.394,
    "l": 50.784
  },
  "oklch": {
    "l": 0.47334,
    "c": 0.18718,
    "h": 274.2
  },
  "luminance": 0.09654
}

Semantic roles & 50–950 ramp

primary
#4148C2
secondary
#CCC993
accent
#D34DDB
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0914
muted
#7D7B83

Preview Lab

Preview with #4148C2

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

Preview Lab → · Contrast checker → · Palette generator →

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