#4138BC#4138BC

#4138BC is a dark, vivid blue. Relative luminance 0.076; OKLCH L 44.2% C 0.198 H 277.6°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#4138BC
RGBrgb(65, 56, 188)
HSLhsl(244, 54%, 48%)
HSVhsv(244, 70%, 74%)
CMYKcmyk(65.4%, 70.2%, 0%, 26.3%)
CIE-LABlab(33.10, 43.78, -67.95)
CIE-LCHlch(33.10, 80.83, 302.80°)
OKLaboklab(44.19% 0.0261 -0.1961)
OKLCHoklch(44.19% 0.198 277.6)
XYZxyz(12.6683, 7.5819, 48.3631)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4138BC #B3BC38
analogous
#3871BC #4138BC #8338BC
triadic
#4138BC #BC4138 #38BC41
tetradic
#4138BC #BC3871 #B3BC38 #38BC83
square
#4138BC #BC3871 #B3BC38 #38BC83
split-complementary
#4138BC #BC8338 #71BC38
monochromatic
#201C5E #312A8D #4138BC #6961D0 #9690DE

Accessibility & contrast

On white

8.34
#4138BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#4138BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4138BC
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4138BC#FFFFFF#000000##FFFFFF
##4138BC1.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C0
Deuteranopia (green-blind)
#0048BA
Tritanopia (blue-blind)
#005C76
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4138bc;
/* rgb */ color: rgb(65, 56, 188);
/* oklch */ color: oklch(44.2% 0.198 277.6);
Tailwind
colors: {
  custom: {
    50: '#8570d1',
    500: '#4138bc',
    950: '#000000',
  },
}
SCSS
$custom: #4138bc;
$custom-light: #8570d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4138bc",
  "rgb": {
    "r": 65,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 244.091,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.44188,
    "c": 0.19788,
    "h": 277.6
  },
  "luminance": 0.07583
}

Semantic roles & 50–950 ramp

primary
#4138BC
secondary
#C4C987
accent
#DD4AD3
background
#F8F6FD
surface
#F0ECFA
border
#CBC7D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #4138BC

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

Preview Lab → · Contrast checker → · Palette generator →

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