#301658#301658

#301658 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.112 H 296.5°. Best body text is #FFFFFF at 15.20:1 contrast (WCAG AA passes).

Color values

HEX#301658
RGBrgb(48, 22, 88)
HSLhsl(264, 60%, 22%)
HSVhsv(264, 75%, 35%)
CMYKcmyk(45.5%, 75%, 0%, 65.5%)
CIE-LABlab(14.99, 28.99, -35.05)
CIE-LCHlch(14.99, 45.48, 309.60°)
OKLaboklab(27.99% 0.0499 -0.1002)
OKLCHoklch(27.99% 0.112 296.5)
XYZxyz(3.2668, 1.9067, 9.4265)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301658 #3E5816
analogous
#161D58 #301658 #511658
triadic
#301658 #583016 #165830
tetradic
#301658 #58161D #3E5816 #165851
square
#301658 #58161D #3E5816 #165851
split-complementary
#301658 #585116 #1D5816
monochromatic
#0D0618 #150A27 #301658 #4B2289 #652EBA

Accessibility & contrast

On white

15.20
#301658 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#301658 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301658
15.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301658#FFFFFF#000000##FFFFFF
##3016581.0015.201.3815.20
#FFFFFF15.201.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265A
Deuteranopia (green-blind)
#002557
Tritanopia (blue-blind)
#262635
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #301658;
/* rgb */ color: rgb(48, 22, 88);
/* oklch */ color: oklch(28.0% 0.112 296.5);
Tailwind
colors: {
  custom: {
    50: '#6d5588',
    500: '#301658',
    950: '#000000',
  },
}
SCSS
$custom: #301658;
$custom-light: #6d5588;
$custom-dark: #000000;
JSON
{
  "hex": "#301658",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 88
  },
  "hsl": {
    "h": 263.636,
    "s": 60,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27994,
    "c": 0.11189,
    "h": 296.5
  },
  "luminance": 0.01907
}

Semantic roles & 50–950 ramp

primary
#301658
secondary
#6E8F3B
accent
#E345A5
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #301658

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

Preview Lab → · Contrast checker → · Palette generator →

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