#4148C6#4148C6

#4148C6 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.7% C 0.192 H 274.0°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#4148C6
RGBrgb(65, 72, 198)
HSLhsl(237, 54%, 52%)
HSVhsv(237, 67%, 78%)
CMYKcmyk(67.2%, 63.6%, 0%, 22.4%)
CIE-LABlab(37.54, 37.52, -66.52)
CIE-LCHlch(37.54, 76.37, 299.42°)
OKLaboklab(47.68% 0.0134 -0.1919)
OKLCHoklch(47.68% 0.192 274)
XYZxyz(14.6870, 9.8344, 54.5394)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4148C6 #C6BF41
analogous
#418BC6 #4148C6 #7D41C6
triadic
#4148C6 #C64148 #48C641
tetradic
#4148C6 #C6418B #C6BF41 #41C67D
square
#4148C6 #C6418B #C6BF41 #41C67D
split-complementary
#4148C6 #C67D41 #8BC641
monochromatic
#20246C #2F349B #4148C6 #7075D4 #9FA3E2

Accessibility & contrast

On white

7.08
#4148C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#4148C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4148C6
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4148C6#FFFFFF#000000##FFFFFF
##4148C61.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECA
Deuteranopia (green-blind)
#0052C4
Tritanopia (blue-blind)
#006880
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4148c6;
/* rgb */ color: rgb(65, 72, 198);
/* oklch */ color: oklch(47.7% 0.192 274.0);
Tailwind
colors: {
  custom: {
    50: '#867bd8',
    500: '#4148c6',
    950: '#000000',
  },
}
SCSS
$custom: #4148c6;
$custom-light: #867bd8;
$custom-dark: #000000;
JSON
{
  "hex": "#4148c6",
  "rgb": {
    "r": 65,
    "g": 72,
    "b": 198
  },
  "hsl": {
    "h": 236.842,
    "s": 53.846,
    "l": 51.569
  },
  "oklch": {
    "l": 0.47681,
    "c": 0.1924,
    "h": 274
  },
  "luminance": 0.09836
}

Semantic roles & 50–950 ramp

primary
#4148C6
secondary
#CFCC94
accent
#D64BDD
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0915
muted
#7D7B83

Preview Lab

Preview with #4148C6

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

Preview Lab → · Contrast checker → · Palette generator →

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