#3A38AA#3A38AA

#3A38AA is a dark, vivid blue. Relative luminance 0.066; OKLCH L 42.0% C 0.176 H 276.4°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#3A38AA
RGBrgb(58, 56, 170)
HSLhsl(241, 50%, 44%)
HSVhsv(241, 67%, 67%)
CMYKcmyk(65.9%, 67.1%, 0%, 33.3%)
CIE-LABlab(30.95, 36.88, -60.79)
CIE-LCHlch(30.95, 71.11, 301.25°)
OKLaboklab(42.01% 0.0197 -0.1754)
OKLCHoklch(42.01% 0.176 276.4)
XYZxyz(10.4124, 6.6293, 38.7533)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A38AA #A8AA38
analogous
#386FAA #3A38AA #7338AA
triadic
#3A38AA #AA3A38 #38AA3A
tetradic
#3A38AA #AA386F #A8AA38 #38AA73
square
#3A38AA #AA386F #A8AA38 #38AA73
split-complementary
#3A38AA #AA7338 #6FAA38
monochromatic
#1B1A4E #2A297C #3A38AA #5957C8 #8785D7

Accessibility & contrast

On white

9.03
#3A38AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#3A38AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A38AA
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A38AA#FFFFFF#000000##FFFFFF
##3A38AA1.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAE
Deuteranopia (green-blind)
#0044A8
Tritanopia (blue-blind)
#00566C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3a38aa;
/* rgb */ color: rgb(58, 56, 170);
/* oklch */ color: oklch(42.0% 0.176 276.4);
Tailwind
colors: {
  custom: {
    50: '#7e6fc4',
    500: '#3a38aa',
    950: '#000000',
  },
}
SCSS
$custom: #3a38aa;
$custom-light: #7e6fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a38aa",
  "rgb": {
    "r": 58,
    "g": 56,
    "b": 170
  },
  "hsl": {
    "h": 241.053,
    "s": 50.442,
    "l": 44.314
  },
  "oklch": {
    "l": 0.42007,
    "c": 0.17649,
    "h": 276.4
  },
  "luminance": 0.0663
}

Semantic roles & 50–950 ramp

primary
#3A38AA
secondary
#C0C17D
accent
#DA4ED7
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3A38AA

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

Preview Lab → · Contrast checker → · Palette generator →

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