#301258#301258

#301258 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.117 H 297.6°. Best body text is #FFFFFF at 15.52:1 contrast (WCAG AA passes).

Color values

HEX#301258
RGBrgb(48, 18, 88)
HSLhsl(266, 66%, 21%)
HSVhsv(266, 80%, 35%)
CMYKcmyk(45.5%, 79.5%, 0%, 65.5%)
CIE-LABlab(14.21, 31.19, -36.32)
CIE-LCHlch(14.21, 47.88, 310.65°)
OKLaboklab(27.44% 0.0543 -0.1039)
OKLCHoklch(27.44% 0.117 297.6)
XYZxyz(3.1962, 1.7655, 9.4030)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301258 #3A5812
analogous
#121758 #301258 #531258
triadic
#301258 #583012 #125830
tetradic
#301258 #581217 #3A5812 #125853
square
#301258 #581217 #3A5812 #125853
split-complementary
#301258 #585312 #175812
monochromatic
#0E0519 #140825 #301258 #4C1C8B #6727BE

Accessibility & contrast

On white

15.52
#301258 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#301258 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301258
15.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301258#FFFFFF#000000##FFFFFF
##3012581.0015.521.3515.52
#FFFFFF15.521.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245A
Deuteranopia (green-blind)
#002357
Tritanopia (blue-blind)
#262434
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #301258;
/* rgb */ color: rgb(48, 18, 88);
/* oklch */ color: oklch(27.4% 0.117 297.6);
Tailwind
colors: {
  custom: {
    50: '#6d5388',
    500: '#301258',
    950: '#000000',
  },
}
SCSS
$custom: #301258;
$custom-light: #6d5388;
$custom-dark: #000000;
JSON
{
  "hex": "#301258",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 88
  },
  "hsl": {
    "h": 265.714,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27438,
    "c": 0.1172,
    "h": 297.6
  },
  "luminance": 0.01766
}

Semantic roles & 50–950 ramp

primary
#301258
secondary
#699135
accent
#E93FA0
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #301258

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

Preview Lab → · Contrast checker → · Palette generator →

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