#3E38AB#3E38AB

#3E38AB is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.4% C 0.177 H 278.0°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#3E38AB
RGBrgb(62, 56, 171)
HSLhsl(243, 51%, 45%)
HSVhsv(243, 67%, 67%)
CMYKcmyk(63.7%, 67.3%, 0%, 32.9%)
CIE-LABlab(31.33, 37.79, -60.76)
CIE-LCHlch(31.33, 71.55, 301.88°)
OKLaboklab(42.39% 0.0247 -0.1752)
OKLCHoklch(42.39% 0.177 278)
XYZxyz(10.7491, 6.7919, 39.2647)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E38AB #A5AB38
analogous
#386CAB #3E38AB #7738AB
triadic
#3E38AB #AB3E38 #38AB3E
tetradic
#3E38AB #AB386C #A5AB38 #38AB77
square
#3E38AB #AB386C #A5AB38 #38AB77
split-complementary
#3E38AB #AB7738 #6CAB38
monochromatic
#1D1A4F #2D297D #3E38AB #5E58C8 #8A86D7

Accessibility & contrast

On white

8.90
#3E38AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#3E38AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E38AB
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E38AB#FFFFFF#000000##FFFFFF
##3E38AB1.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAF
Deuteranopia (green-blind)
#0045A9
Tritanopia (blue-blind)
#00566C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3e38ab;
/* rgb */ color: rgb(62, 56, 171);
/* oklch */ color: oklch(42.4% 0.177 278.0);
Tailwind
colors: {
  custom: {
    50: '#806fc5',
    500: '#3e38ab',
    950: '#000000',
  },
}
SCSS
$custom: #3e38ab;
$custom-light: #806fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#3e38ab",
  "rgb": {
    "r": 62,
    "g": 56,
    "b": 171
  },
  "hsl": {
    "h": 243.13,
    "s": 50.661,
    "l": 44.51
  },
  "oklch": {
    "l": 0.42385,
    "c": 0.17691,
    "h": 278
  },
  "luminance": 0.06793
}

Semantic roles & 50–950 ramp

primary
#3E38AB
secondary
#BEC17D
accent
#DA4ED3
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3E38AB

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

Preview Lab → · Contrast checker → · Palette generator →

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