#3A248E#3A248E

#3A248E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.164 H 284.2°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#3A248E
RGBrgb(58, 36, 142)
HSLhsl(252, 60%, 35%)
HSVhsv(252, 75%, 56%)
CMYKcmyk(59.2%, 74.6%, 0%, 44.3%)
CIE-LABlab(24.04, 39.51, -55.03)
CIE-LCHlch(24.04, 67.75, 305.68°)
OKLaboklab(36.26% 0.0402 -0.1585)
OKLCHoklch(36.26% 0.164 284.2)
XYZxyz(7.2568, 4.1138, 25.9976)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A248E #788E24
analogous
#24438E #3A248E #6F248E
triadic
#3A248E #8E3A24 #248E3A
tetradic
#3A248E #8E2443 #788E24 #248E6F
square
#3A248E #8E2443 #788E24 #248E6F
split-complementary
#3A248E #8E6F24 #438E24
monochromatic
#120B2C #26185D #3A248E #4E30BF #7258D5

Accessibility & contrast

On white

11.52
#3A248E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#3A248E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A248E
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A248E#FFFFFF#000000##FFFFFF
##3A248E1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00368C
Tritanopia (blue-blind)
#0B4157
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3a248e;
/* rgb */ color: rgb(58, 36, 142);
/* oklch */ color: oklch(36.3% 0.164 284.2);
Tailwind
colors: {
  custom: {
    50: '#7a61b0',
    500: '#3a248e',
    950: '#000000',
  },
}
SCSS
$custom: #3a248e;
$custom-light: #7a61b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a248e",
  "rgb": {
    "r": 58,
    "g": 36,
    "b": 142
  },
  "hsl": {
    "h": 252.453,
    "s": 59.551,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36259,
    "c": 0.16352,
    "h": 284.2
  },
  "luminance": 0.04114
}

Semantic roles & 50–950 ramp

primary
#3A248E
secondary
#A4B955
accent
#E345C2
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #3A248E

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

Preview Lab → · Contrast checker → · Palette generator →

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