#4138C8#4138C8

#4138C8 is a mid, highly saturated blue. Relative luminance 0.081; OKLCH L 45.3% C 0.213 H 276.5°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#4138C8
RGBrgb(65, 56, 200)
HSLhsl(244, 57%, 50%)
HSVhsv(244, 72%, 78%)
CMYKcmyk(67.5%, 72%, 0%, 21.6%)
CIE-LABlab(34.23, 47.64, -73.12)
CIE-LCHlch(34.23, 87.26, 303.08°)
OKLaboklab(45.34% 0.024 -0.2112)
OKLCHoklch(45.34% 0.213 276.5)
XYZxyz(14.0161, 8.1210, 55.4613)
Luminance0.0812 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4138C8 #BFC838
analogous
#3877C8 #4138C8 #8938C8
triadic
#4138C8 #C84138 #38C841
tetradic
#4138C8 #C83877 #BFC838 #38C889
square
#4138C8 #C83877 #BFC838 #38C889
split-complementary
#4138C8 #C88938 #77C838
monochromatic
#221D69 #312A99 #4138C8 #6F68D5 #9D98E3

Accessibility & contrast

On white

8.00
#4138C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#4138C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4138C8
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4138C8#FFFFFF#000000##FFFFFF
##4138C81.008.002.628.00
#FFFFFF8.001.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CC
Deuteranopia (green-blind)
#004AC5
Tritanopia (blue-blind)
#00607C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4138c8;
/* rgb */ color: rgb(65, 56, 200);
/* oklch */ color: oklch(45.3% 0.213 276.5);
Tailwind
colors: {
  custom: {
    50: '#8870da',
    500: '#4138c8',
    950: '#000000',
  },
}
SCSS
$custom: #4138c8;
$custom-light: #8870da;
$custom-dark: #000000;
JSON
{
  "hex": "#4138c8",
  "rgb": {
    "r": 65,
    "g": 56,
    "b": 200
  },
  "hsl": {
    "h": 243.75,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.45344,
    "c": 0.2126,
    "h": 276.5
  },
  "luminance": 0.08122
}

Semantic roles & 50–950 ramp

primary
#4138C8
secondary
#CACE8E
accent
#E048D6
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4138C8

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

Preview Lab → · Contrast checker → · Palette generator →

#4138C8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva