#4138AA#4138AA

#4138AA is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.5% C 0.175 H 279.4°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#4138AA
RGBrgb(65, 56, 170)
HSLhsl(245, 50%, 44%)
HSVhsv(245, 67%, 67%)
CMYKcmyk(61.8%, 67.1%, 0%, 33.3%)
CIE-LABlab(31.47, 37.91, -59.91)
CIE-LCHlch(31.47, 70.90, 302.33°)
OKLaboklab(42.52% 0.0287 -0.1726)
OKLCHoklch(42.52% 0.175 279.4)
XYZxyz(10.8475, 6.8536, 38.7737)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4138AA #A1AA38
analogous
#3868AA #4138AA #7A38AA
triadic
#4138AA #AA4138 #38AA41
tetradic
#4138AA #AA3868 #A1AA38 #38AA7A
square
#4138AA #AA3868 #A1AA38 #38AA7A
split-complementary
#4138AA #AA7A38 #68AA38
monochromatic
#1E1A4E #2F297C #4138AA #6057C8 #8C85D7

Accessibility & contrast

On white

8.86
#4138AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#4138AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4138AA#FFFFFF#000000##FFFFFF
##4138AA1.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAE
Deuteranopia (green-blind)
#0046A8
Tritanopia (blue-blind)
#00566C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4138aa;
/* rgb */ color: rgb(65, 56, 170);
/* oklch */ color: oklch(42.5% 0.175 279.4);
Tailwind
colors: {
  custom: {
    50: '#826fc4',
    500: '#4138aa',
    950: '#000000',
  },
}
SCSS
$custom: #4138aa;
$custom-light: #826fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#4138aa",
  "rgb": {
    "r": 65,
    "g": 56,
    "b": 170
  },
  "hsl": {
    "h": 244.737,
    "s": 50.442,
    "l": 44.314
  },
  "oklch": {
    "l": 0.4252,
    "c": 0.17499,
    "h": 279.4
  },
  "luminance": 0.06854
}

Semantic roles & 50–950 ramp

primary
#4138AA
secondary
#BBC17D
accent
#DA4ECF
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4138AA

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

Preview Lab → · Contrast checker → · Palette generator →

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