#3A338A#3A338A

#3A338A is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.3% C 0.140 H 281.2°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#3A338A
RGBrgb(58, 51, 138)
HSLhsl(245, 46%, 37%)
HSVhsv(245, 63%, 54%)
CMYKcmyk(58%, 63%, 0%, 45.9%)
CIE-LABlab(27.02, 29.16, -47.68)
CIE-LCHlch(27.02, 55.89, 301.45°)
OKLaboklab(38.3% 0.027 -0.1369)
OKLCHoklch(38.3% 0.14 281.2)
XYZxyz(7.5148, 5.1017, 24.6286)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A338A #838A33
analogous
#33578A #3A338A #66338A
triadic
#3A338A #8A3A33 #338A3A
tetradic
#3A338A #8A3357 #838A33 #338A66
square
#3A338A #8A3357 #838A33 #338A66
split-complementary
#3A338A #8A6633 #578A33
monochromatic
#141231 #27225D #3A338A #4D44B7 #756EC9

Accessibility & contrast

On white

10.39
#3A338A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#3A338A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A338A
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A338A#FFFFFF#000000##FFFFFF
##3A338A1.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438D
Deuteranopia (green-blind)
#003D88
Tritanopia (blue-blind)
#104859
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3a338a;
/* rgb */ color: rgb(58, 51, 138);
/* oklch */ color: oklch(38.3% 0.140 281.2);
Tailwind
colors: {
  custom: {
    50: '#786bad',
    500: '#3a338a',
    950: '#000000',
  },
}
SCSS
$custom: #3a338a;
$custom-light: #786bad;
$custom-dark: #000000;
JSON
{
  "hex": "#3a338a",
  "rgb": {
    "r": 58,
    "g": 51,
    "b": 138
  },
  "hsl": {
    "h": 244.828,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.38296,
    "c": 0.13958,
    "h": 281.2
  },
  "luminance": 0.05102
}

Semantic roles & 50–950 ramp

primary
#3A338A
secondary
#ABB167
accent
#D652CB
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #3A338A

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

Preview Lab → · Contrast checker → · Palette generator →

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