#4148C5#4148C5

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

Color values

HEX#4148C5
RGBrgb(65, 72, 197)
HSLhsl(237, 53%, 51%)
HSVhsv(237, 67%, 77%)
CMYKcmyk(67%, 63.5%, 0%, 22.7%)
CIE-LABlab(37.46, 37.18, -66.07)
CIE-LCHlch(37.46, 75.81, 299.36°)
OKLaboklab(47.59% 0.0135 -0.1906)
OKLCHoklch(47.59% 0.191 274)
XYZxyz(14.5720, 9.7884, 53.9339)
Luminance0.0979 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4148C5 #C5BE41
analogous
#418AC5 #4148C5 #7C41C5
triadic
#4148C5 #C54148 #48C541
tetradic
#4148C5 #C5418A #C5BE41 #41C57C
square
#4148C5 #C5418A #C5BE41 #41C57C
split-complementary
#4148C5 #C57C41 #8AC541
monochromatic
#21256B #2F359A #4148C5 #7075D3 #9FA2E2

Accessibility & contrast

On white

7.10
#4148C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#4148C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4148C5
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4148C5#FFFFFF#000000##FFFFFF
##4148C51.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4148c5;
/* rgb */ color: rgb(65, 72, 197);
/* oklch */ color: oklch(47.6% 0.191 274.0);
Tailwind
colors: {
  custom: {
    50: '#867bd8',
    500: '#4148c5',
    950: '#000000',
  },
}
SCSS
$custom: #4148c5;
$custom-light: #867bd8;
$custom-dark: #000000;
JSON
{
  "hex": "#4148c5",
  "rgb": {
    "r": 65,
    "g": 72,
    "b": 197
  },
  "hsl": {
    "h": 236.818,
    "s": 53.226,
    "l": 51.373
  },
  "oklch": {
    "l": 0.47594,
    "c": 0.1911,
    "h": 274
  },
  "luminance": 0.0979
}

Semantic roles & 50–950 ramp

primary
#4148C5
secondary
#CECB94
accent
#D54BDD
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0915
muted
#7D7B83

Preview Lab

Preview with #4148C5

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

Preview Lab → · Contrast checker → · Palette generator →

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