#3A30B3#3A30B3

#3A30B3 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.6% C 0.197 H 277.0°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#3A30B3
RGBrgb(58, 48, 179)
HSLhsl(245, 58%, 45%)
HSVhsv(245, 73%, 70%)
CMYKcmyk(67.6%, 73.2%, 0%, 29.8%)
CIE-LABlab(30.08, 44.58, -67.60)
CIE-LCHlch(30.08, 80.98, 303.40°)
OKLaboklab(41.64% 0.0238 -0.1953)
OKLCHoklch(41.64% 0.197 277)
XYZxyz(10.9359, 6.2672, 43.2725)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A30B3 #A9B330
analogous
#3068B3 #3A30B3 #7C30B3
triadic
#3A30B3 #B33A30 #30B33A
tetradic
#3A30B3 #B33068 #A9B330 #30B37C
square
#3A30B3 #B33068 #A9B330 #30B37C
split-complementary
#3A30B3 #B37C30 #68B330
monochromatic
#1B1652 #2A2383 #3A30B3 #5A50D0 #8780DD

Accessibility & contrast

On white

9.32
#3A30B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A30B3
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A30B3#FFFFFF#000000##FFFFFF
##3A30B31.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB7
Deuteranopia (green-blind)
#0041B1
Tritanopia (blue-blind)
#00556F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #3a30b3;
/* rgb */ color: rgb(58, 48, 179);
/* oklch */ color: oklch(41.6% 0.197 277.0);
Tailwind
colors: {
  custom: {
    50: '#816acb',
    500: '#3a30b3',
    950: '#000000',
  },
}
SCSS
$custom: #3a30b3;
$custom-light: #816acb;
$custom-dark: #000000;
JSON
{
  "hex": "#3a30b3",
  "rgb": {
    "r": 58,
    "g": 48,
    "b": 179
  },
  "hsl": {
    "h": 244.58,
    "s": 57.709,
    "l": 44.51
  },
  "oklch": {
    "l": 0.41639,
    "c": 0.19674,
    "h": 277
  },
  "luminance": 0.06268
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A30B3

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

Preview Lab → · Contrast checker → · Palette generator →

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