#4148C7#4148C7

#4148C7 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.8% C 0.194 H 274.0°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#4148C7
RGBrgb(65, 72, 199)
HSLhsl(237, 54%, 52%)
HSVhsv(237, 67%, 78%)
CMYKcmyk(67.3%, 63.8%, 0%, 22%)
CIE-LABlab(37.63, 37.86, -66.96)
CIE-LCHlch(37.63, 76.92, 299.48°)
OKLaboklab(47.77% 0.0134 -0.1932)
OKLCHoklch(47.77% 0.194 274)
XYZxyz(14.8027, 9.8807, 55.1488)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4148C7 #C7C041
analogous
#418BC7 #4148C7 #7D41C7
triadic
#4148C7 #C74148 #48C741
tetradic
#4148C7 #C7418B #C7C041 #41C77D
square
#4148C7 #C7418B #C7C041 #41C77D
split-complementary
#4148C7 #C77D41 #8BC741
monochromatic
#20246D #2E349D #4148C7 #7076D5 #A0A3E3

Accessibility & contrast

On white

7.06
#4148C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#4148C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4148C7
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4148C7#FFFFFF#000000##FFFFFF
##4148C71.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCB
Deuteranopia (green-blind)
#0053C5
Tritanopia (blue-blind)
#006981
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4148c7;
/* rgb */ color: rgb(65, 72, 199);
/* oklch */ color: oklch(47.8% 0.194 274.0);
Tailwind
colors: {
  custom: {
    50: '#867bd9',
    500: '#4148c7',
    950: '#000000',
  },
}
SCSS
$custom: #4148c7;
$custom-light: #867bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#4148c7",
  "rgb": {
    "r": 65,
    "g": 72,
    "b": 199
  },
  "hsl": {
    "h": 236.866,
    "s": 54.472,
    "l": 51.765
  },
  "oklch": {
    "l": 0.47768,
    "c": 0.19369,
    "h": 274
  },
  "luminance": 0.09882
}

Semantic roles & 50–950 ramp

primary
#4148C7
secondary
#CFCC95
accent
#D64ADE
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0D0915
muted
#7D7B83

Preview Lab

Preview with #4148C7

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

Preview Lab → · Contrast checker → · Palette generator →

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