#4138AC#4138AC

#4138AC is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.7% C 0.178 H 279.2°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#4138AC
RGBrgb(65, 56, 172)
HSLhsl(245, 51%, 45%)
HSVhsv(245, 67%, 67%)
CMYKcmyk(62.2%, 67.4%, 0%, 32.5%)
CIE-LABlab(31.65, 38.57, -60.82)
CIE-LCHlch(31.65, 72.02, 302.38°)
OKLaboklab(42.7% 0.0285 -0.1753)
OKLCHoklch(42.7% 0.178 279.2)
XYZxyz(11.0382, 6.9299, 39.7777)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4138AC #A3AC38
analogous
#3869AC #4138AC #7B38AC
triadic
#4138AC #AC4138 #38AC41
tetradic
#4138AC #AC3869 #A3AC38 #38AC7B
square
#4138AC #AC3869 #A3AC38 #38AC7B
split-complementary
#4138AC #AC7B38 #69AC38
monochromatic
#1E1A50 #30297E #4138AC #6158C9 #8D87D8

Accessibility & contrast

On white

8.80
#4138AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#4138AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4138AC#FFFFFF#000000##FFFFFF
##4138AC1.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB0
Deuteranopia (green-blind)
#0046AA
Tritanopia (blue-blind)
#00566D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4138ac;
/* rgb */ color: rgb(65, 56, 172);
/* oklch */ color: oklch(42.7% 0.178 279.2);
Tailwind
colors: {
  custom: {
    50: '#826fc6',
    500: '#4138ac',
    950: '#000000',
  },
}
SCSS
$custom: #4138ac;
$custom-light: #826fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#4138ac",
  "rgb": {
    "r": 65,
    "g": 56,
    "b": 172
  },
  "hsl": {
    "h": 244.655,
    "s": 50.877,
    "l": 44.706
  },
  "oklch": {
    "l": 0.42701,
    "c": 0.17759,
    "h": 279.2
  },
  "luminance": 0.06931
}

Semantic roles & 50–950 ramp

primary
#4138AC
secondary
#BDC27E
accent
#DA4DCF
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4138AC

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

Preview Lab → · Contrast checker → · Palette generator →

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