#4A188F#4A188F

#4A188F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.176 H 294.9°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#4A188F
RGBrgb(74, 24, 143)
HSLhsl(265, 71%, 33%)
HSVhsv(265, 83%, 56%)
CMYKcmyk(48.3%, 83.2%, 0%, 43.9%)
CIE-LABlab(23.97, 47.80, -55.70)
CIE-LCHlch(23.97, 73.40, 310.63°)
OKLaboklab(36.66% 0.0743 -0.1598)
OKLCHoklch(36.66% 0.176 294.9)
XYZxyz(8.1072, 4.0921, 26.3440)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A188F #5D8F18
analogous
#18228F #4A188F #85188F
triadic
#4A188F #8F4A18 #188F4A
tetradic
#4A188F #8F1822 #5D8F18 #188F85
square
#4A188F #8F1822 #5D8F18 #188F85
split-complementary
#4A188F #8F8518 #228F18
monochromatic
#140626 #2F0F5B #4A188F #6521C3 #8442DF

Accessibility & contrast

On white

11.55
#4A188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4A188F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A188F
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A188F#FFFFFF#000000##FFFFFF
##4A188F1.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#353B55
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4a188f;
/* rgb */ color: rgb(74, 24, 143);
/* oklch */ color: oklch(36.7% 0.176 294.9);
Tailwind
colors: {
  custom: {
    50: '#845db1',
    500: '#4a188f',
    950: '#000000',
  },
}
SCSS
$custom: #4a188f;
$custom-light: #845db1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a188f",
  "rgb": {
    "r": 74,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 265.21,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.3666,
    "c": 0.17623,
    "h": 294.9
  },
  "luminance": 0.04092
}

Semantic roles & 50–950 ramp

primary
#4A188F
secondary
#8BC043
accent
#EE3AA2
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4A188F

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

Preview Lab → · Contrast checker → · Palette generator →

#4A188F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva