#3C40AF#3C40AF

#3C40AF is a dark, vivid blue. Relative luminance 0.077; OKLCH L 44.0% C 0.173 H 275.1°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#3C40AF
RGBrgb(60, 64, 175)
HSLhsl(238, 49%, 46%)
HSVhsv(238, 66%, 69%)
CMYKcmyk(65.7%, 63.4%, 0%, 31.4%)
CIE-LABlab(33.40, 33.90, -59.77)
CIE-LCHlch(33.40, 68.71, 299.56°)
OKLaboklab(43.96% 0.0154 -0.1723)
OKLCHoklch(43.96% 0.173 275.1)
XYZxyz(11.4322, 7.7216, 41.4371)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C40AF #AFAB3C
analogous
#3C79AF #3C40AF #713CAF
triadic
#3C40AF #AF3C40 #40AF3C
tetradic
#3C40AF #AF3C79 #AFAB3C #3CAF71
square
#3C40AF #AF3C79 #AFAB3C #3CAF71
split-complementary
#3C40AF #AF713C #79AF3C
monochromatic
#1D1F54 #2C2F81 #3C40AF #6063C8 #8D90D8

Accessibility & contrast

On white

8.25
#3C40AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#3C40AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C40AF
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C40AF#FFFFFF#000000##FFFFFF
##3C40AF1.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B3
Deuteranopia (green-blind)
#0049AD
Tritanopia (blue-blind)
#005C71
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3c40af;
/* rgb */ color: rgb(60, 64, 175);
/* oklch */ color: oklch(44.0% 0.173 275.1);
Tailwind
colors: {
  custom: {
    50: '#8075c8',
    500: '#3c40af',
    950: '#000000',
  },
}
SCSS
$custom: #3c40af;
$custom-light: #8075c8;
$custom-dark: #000000;
JSON
{
  "hex": "#3c40af",
  "rgb": {
    "r": 60,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 237.913,
    "s": 48.936,
    "l": 46.078
  },
  "oklch": {
    "l": 0.43961,
    "c": 0.17299,
    "h": 275.1
  },
  "luminance": 0.07723
}

Semantic roles & 50–950 ramp

primary
#3C40AF
secondary
#C3C184
accent
#D44FD8
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3C40AF

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

Preview Lab → · Contrast checker → · Palette generator →

#3C40AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva