#301858#301858

#301858 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.3% C 0.109 H 295.8°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#301858
RGBrgb(48, 24, 88)
HSLhsl(263, 57%, 22%)
HSVhsv(263, 73%, 35%)
CMYKcmyk(45.5%, 72.7%, 0%, 65.5%)
CIE-LABlab(15.41, 27.81, -34.35)
CIE-LCHlch(15.41, 44.20, 308.99°)
OKLaboklab(28.3% 0.0475 -0.0981)
OKLCHoklch(28.3% 0.109 295.8)
XYZxyz(3.3065, 1.9862, 9.4398)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301858 #405818
analogous
#182058 #301858 #501858
triadic
#301858 #583018 #185830
tetradic
#301858 #581820 #405818 #185850
square
#301858 #581820 #405818 #185850
split-complementary
#301858 #585018 #205818
monochromatic
#0D0718 #160B28 #301858 #4A2588 #6432B8

Accessibility & contrast

On white

15.03
#301858 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#301858 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301858
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301858#FFFFFF#000000##FFFFFF
##3018581.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275A
Deuteranopia (green-blind)
#002657
Tritanopia (blue-blind)
#262735
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #301858;
/* rgb */ color: rgb(48, 24, 88);
/* oklch */ color: oklch(28.3% 0.109 295.8);
Tailwind
colors: {
  custom: {
    50: '#6c5788',
    500: '#301858',
    950: '#000000',
  },
}
SCSS
$custom: #301858;
$custom-light: #6c5788;
$custom-dark: #000000;
JSON
{
  "hex": "#301858",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 88
  },
  "hsl": {
    "h": 262.5,
    "s": 57.143,
    "l": 21.961
  },
  "oklch": {
    "l": 0.28298,
    "c": 0.10905,
    "h": 295.8
  },
  "luminance": 0.01986
}

Semantic roles & 50–950 ramp

primary
#301858
secondary
#708F3D
accent
#E047A7
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #301858

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

Preview Lab → · Contrast checker → · Palette generator →

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