#4138CA#4138CA

#4138CA is a mid, highly saturated blue. Relative luminance 0.082; OKLCH L 45.5% C 0.215 H 276.3°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#4138CA
RGBrgb(65, 56, 202)
HSLhsl(244, 58%, 51%)
HSVhsv(244, 72%, 79%)
CMYKcmyk(67.8%, 72.3%, 0%, 20.8%)
CIE-LABlab(34.43, 48.27, -73.96)
CIE-LCHlch(34.43, 88.32, 303.13°)
OKLaboklab(45.54% 0.0237 -0.2137)
OKLCHoklch(45.54% 0.215 276.3)
XYZxyz(14.2513, 8.2152, 56.7003)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4138CA #C1CA38
analogous
#3878CA #4138CA #8A38CA
triadic
#4138CA #CA4138 #38CA41
tetradic
#4138CA #CA3878 #C1CA38 #38CA8A
square
#4138CA #CA3878 #C1CA38 #38CA8A
split-complementary
#4138CA #CA8A38 #78CA38
monochromatic
#211D6B #30299B #4138CA #6F68D7 #9D99E4

Accessibility & contrast

On white

7.94
#4138CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#4138CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4138CA
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4138CA#FFFFFF#000000##FFFFFF
##4138CA1.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CE
Deuteranopia (green-blind)
#004AC7
Tritanopia (blue-blind)
#00617E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4138ca;
/* rgb */ color: rgb(65, 56, 202);
/* oklch */ color: oklch(45.5% 0.215 276.3);
Tailwind
colors: {
  custom: {
    50: '#8871db',
    500: '#4138ca',
    950: '#000000',
  },
}
SCSS
$custom: #4138ca;
$custom-light: #8871db;
$custom-dark: #000000;
JSON
{
  "hex": "#4138ca",
  "rgb": {
    "r": 65,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 243.699,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.4554,
    "c": 0.21503,
    "h": 276.3
  },
  "luminance": 0.08216
}

Semantic roles & 50–950 ramp

primary
#4138CA
secondary
#CBCF8E
accent
#E147D8
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4138CA

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

Preview Lab → · Contrast checker → · Palette generator →

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