#301954#301954

#301954 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.1% C 0.102 H 297.3°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#301954
RGBrgb(48, 25, 84)
HSLhsl(263, 54%, 21%)
HSVhsv(263, 70%, 33%)
CMYKcmyk(42.9%, 70.2%, 0%, 67.1%)
CIE-LABlab(15.30, 25.99, -31.85)
CIE-LCHlch(15.30, 41.11, 309.22°)
OKLaboklab(28.11% 0.0469 -0.0908)
OKLCHoklch(28.11% 0.102 297.3)
XYZxyz(3.1664, 1.9637, 8.5980)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301954 #3D5419
analogous
#192054 #301954 #4E1954
triadic
#301954 #543019 #195430
tetradic
#301954 #541920 #3D5419 #19544E
square
#301954 #541920 #3D5419 #19544E
split-complementary
#301954 #544E19 #205419
monochromatic
#0D0718 #150B25 #301954 #4B2783 #6635B2

Accessibility & contrast

On white

15.08
#301954 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#301954 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301954
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301954#FFFFFF#000000##FFFFFF
##3019541.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002656
Deuteranopia (green-blind)
#002653
Tritanopia (blue-blind)
#272634
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #301954;
/* rgb */ color: rgb(48, 25, 84);
/* oklch */ color: oklch(28.1% 0.102 297.3);
Tailwind
colors: {
  custom: {
    50: '#6c5785',
    500: '#301954',
    950: '#000000',
  },
}
SCSS
$custom: #301954;
$custom-light: #6c5785;
$custom-dark: #000000;
JSON
{
  "hex": "#301954",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 84
  },
  "hsl": {
    "h": 263.39,
    "s": 54.128,
    "l": 21.373
  },
  "oklch": {
    "l": 0.28105,
    "c": 0.10215,
    "h": 297.3
  },
  "luminance": 0.01964
}

Semantic roles & 50–950 ramp

primary
#301954
secondary
#6D8A3E
accent
#DD4AA4
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #301954

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

Preview Lab → · Contrast checker → · Palette generator →

#301954 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva