#4138AF#4138AF

#4138AF is a dark, vivid blue. Relative luminance 0.070; OKLCH L 43.0% C 0.181 H 278.9°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#4138AF
RGBrgb(65, 56, 175)
HSLhsl(245, 52%, 45%)
HSVhsv(245, 68%, 69%)
CMYKcmyk(62.9%, 68%, 0%, 31.4%)
CIE-LABlab(31.91, 39.55, -62.18)
CIE-LCHlch(31.91, 73.70, 302.46°)
OKLaboklab(42.98% 0.0281 -0.1793)
OKLCHoklch(42.98% 0.181 278.9)
XYZxyz(11.3295, 7.0464, 41.3122)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4138AF #A6AF38
analogous
#386AAF #4138AF #7D38AF
triadic
#4138AF #AF4138 #38AF41
tetradic
#4138AF #AF386A #A6AF38 #38AF7D
square
#4138AF #AF386A #A6AF38 #38AF7D
split-complementary
#4138AF #AF7D38 #6AAF38
monochromatic
#1F1A52 #302981 #4138AF #625ACA #8E88D9

Accessibility & contrast

On white

8.72
#4138AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#4138AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4138AF#FFFFFF#000000##FFFFFF
##4138AF1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B3
Deuteranopia (green-blind)
#0046AD
Tritanopia (blue-blind)
#00576F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4138af;
/* rgb */ color: rgb(65, 56, 175);
/* oklch */ color: oklch(43.0% 0.181 278.9);
Tailwind
colors: {
  custom: {
    50: '#8370c8',
    500: '#4138af',
    950: '#000000',
  },
}
SCSS
$custom: #4138af;
$custom-light: #8370c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4138af",
  "rgb": {
    "r": 65,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 244.538,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.42975,
    "c": 0.18145,
    "h": 278.9
  },
  "luminance": 0.07047
}

Semantic roles & 50–950 ramp

primary
#4138AF
secondary
#BEC380
accent
#DB4DD0
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4138AF

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

Preview Lab → · Contrast checker → · Palette generator →

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