#3E408C#3E408C

#3E408C is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.3% C 0.123 H 278.4°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#3E408C
RGBrgb(62, 64, 140)
HSLhsl(238, 39%, 40%)
HSVhsv(238, 56%, 55%)
CMYKcmyk(55.7%, 54.3%, 0%, 45.1%)
CIE-LABlab(30.84, 22.16, -42.72)
CIE-LCHlch(30.84, 48.13, 297.41°)
OKLaboklab(41.26% 0.018 -0.1221)
OKLCHoklch(41.26% 0.123 278.4)
XYZxyz(8.5521, 6.5838, 25.6260)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E408C #8C8A3E
analogous
#3E678C #3E408C #633E8C
triadic
#3E408C #8C3E40 #408C3E
tetradic
#3E408C #8C3E67 #8C8A3E #3E8C63
square
#3E408C #8C3E67 #8C8A3E #3E8C63
split-complementary
#3E408C #8C633E #678C3E
monochromatic
#181937 #2B2D62 #3E408C #5456B3 #7E80C6

Accessibility & contrast

On white

9.06
#3E408C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#3E408C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E408C
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E408C#FFFFFF#000000##FFFFFF
##3E408C1.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154C8F
Deuteranopia (green-blind)
#07468A
Tritanopia (blue-blind)
#19515F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3e408c;
/* rgb */ color: rgb(62, 64, 140);
/* oklch */ color: oklch(41.3% 0.123 278.4);
Tailwind
colors: {
  custom: {
    50: '#7a74ae',
    500: '#3e408c',
    950: '#000000',
  },
}
SCSS
$custom: #3e408c;
$custom-light: #7a74ae;
$custom-dark: #000000;
JSON
{
  "hex": "#3e408c",
  "rgb": {
    "r": 62,
    "g": 64,
    "b": 140
  },
  "hsl": {
    "h": 238.462,
    "s": 38.614,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41255,
    "c": 0.12346,
    "h": 278.4
  },
  "luminance": 0.06584
}

Semantic roles & 50–950 ramp

primary
#3E408C
secondary
#B0AF76
accent
#CC59CF
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#0A0810
muted
#7C7B7F

Preview Lab

Preview with #3E408C

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

Preview Lab → · Contrast checker → · Palette generator →

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