#3A338D#3A338D

#3A338D is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.6% C 0.144 H 280.7°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#3A338D
RGBrgb(58, 51, 141)
HSLhsl(245, 47%, 38%)
HSVhsv(245, 64%, 55%)
CMYKcmyk(58.9%, 63.8%, 0%, 44.7%)
CIE-LABlab(27.27, 30.17, -49.14)
CIE-LCHlch(27.27, 57.66, 301.55°)
OKLaboklab(38.55% 0.0268 -0.1412)
OKLCHoklch(38.55% 0.144 280.7)
XYZxyz(7.7350, 5.1898, 25.7883)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A338D #868D33
analogous
#33598D #3A338D #67338D
triadic
#3A338D #8D3A33 #338D3A
tetradic
#3A338D #8D3359 #868D33 #338D67
square
#3A338D #8D3359 #868D33 #338D67
split-complementary
#3A338D #8D6733 #598D33
monochromatic
#151233 #282360 #3A338D #4C43BA #766FCB

Accessibility & contrast

On white

10.30
#3A338D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#3A338D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A338D
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A338D#FFFFFF#000000##FFFFFF
##3A338D1.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#003D8B
Tritanopia (blue-blind)
#0A495B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3a338d;
/* rgb */ color: rgb(58, 51, 141);
/* oklch */ color: oklch(38.6% 0.144 280.7);
Tailwind
colors: {
  custom: {
    50: '#796baf',
    500: '#3a338d',
    950: '#000000',
  },
}
SCSS
$custom: #3a338d;
$custom-light: #796baf;
$custom-dark: #000000;
JSON
{
  "hex": "#3a338d",
  "rgb": {
    "r": 58,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 244.667,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38553,
    "c": 0.14374,
    "h": 280.7
  },
  "luminance": 0.0519
}

Semantic roles & 50–950 ramp

primary
#3A338D
secondary
#ADB369
accent
#D751CC
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #3A338D

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

Preview Lab → · Contrast checker → · Palette generator →

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