#3A30B2#3A30B2

#3A30B2 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 41.5% C 0.196 H 277.1°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#3A30B2
RGBrgb(58, 48, 178)
HSLhsl(245, 58%, 44%)
HSVhsv(245, 73%, 70%)
CMYKcmyk(67.4%, 73%, 0%, 30.2%)
CIE-LABlab(29.98, 44.26, -67.17)
CIE-LCHlch(29.98, 80.44, 303.38°)
OKLaboklab(41.54% 0.024 -0.194)
OKLCHoklch(41.54% 0.196 277.1)
XYZxyz(10.8351, 6.2269, 42.7418)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A30B2 #A8B230
analogous
#3067B2 #3A30B2 #7B30B2
triadic
#3A30B2 #B23A30 #30B23A
tetradic
#3A30B2 #B23067 #A8B230 #30B27B
square
#3A30B2 #B23067 #A8B230 #30B27B
split-complementary
#3A30B2 #B27B30 #67B230
monochromatic
#1B1652 #2A2382 #3A30B2 #5950D0 #8780DD

Accessibility & contrast

On white

9.35
#3A30B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#3A30B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A30B2
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A30B2#FFFFFF#000000##FFFFFF
##3A30B21.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB6
Deuteranopia (green-blind)
#0041B0
Tritanopia (blue-blind)
#00556E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #3a30b2;
/* rgb */ color: rgb(58, 48, 178);
/* oklch */ color: oklch(41.5% 0.196 277.1);
Tailwind
colors: {
  custom: {
    50: '#816aca',
    500: '#3a30b2',
    950: '#000000',
  },
}
SCSS
$custom: #3a30b2;
$custom-light: #816aca;
$custom-dark: #000000;
JSON
{
  "hex": "#3a30b2",
  "rgb": {
    "r": 58,
    "g": 48,
    "b": 178
  },
  "hsl": {
    "h": 244.615,
    "s": 57.522,
    "l": 44.314
  },
  "oklch": {
    "l": 0.41539,
    "c": 0.19551,
    "h": 277.1
  },
  "luminance": 0.06228
}

Semantic roles & 50–950 ramp

primary
#3A30B2
secondary
#C0C678
accent
#E147D5
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #3A30B2

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

Preview Lab → · Contrast checker → · Palette generator →

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