#301758#301758

#301758 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.1% C 0.110 H 296.2°. Best body text is #FFFFFF at 15.12:1 contrast (WCAG AA passes).

Color values

HEX#301758
RGBrgb(48, 23, 88)
HSLhsl(263, 59%, 22%)
HSVhsv(263, 74%, 35%)
CMYKcmyk(45.5%, 73.9%, 0%, 65.5%)
CIE-LABlab(15.20, 28.41, -34.70)
CIE-LCHlch(15.20, 44.85, 309.30°)
OKLaboklab(28.14% 0.0487 -0.0992)
OKLCHoklch(28.14% 0.11 296.2)
XYZxyz(3.2863, 1.9457, 9.4330)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301758 #3F5817
analogous
#171F58 #301758 #511758
triadic
#301758 #583017 #175830
tetradic
#301758 #58171F #3F5817 #175851
square
#301758 #58171F #3F5817 #175851
split-complementary
#301758 #585117 #1F5817
monochromatic
#0D0618 #160A27 #301758 #4A2489 #6530B9

Accessibility & contrast

On white

15.12
#301758 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301758
15.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301758#FFFFFF#000000##FFFFFF
##3017581.0015.121.3915.12
#FFFFFF15.121.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301758;
/* rgb */ color: rgb(48, 23, 88);
/* oklch */ color: oklch(28.1% 0.110 296.2);
Tailwind
colors: {
  custom: {
    50: '#6d5688',
    500: '#301758',
    950: '#000000',
  },
}
SCSS
$custom: #301758;
$custom-light: #6d5688;
$custom-dark: #000000;
JSON
{
  "hex": "#301758",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 88
  },
  "hsl": {
    "h": 263.077,
    "s": 58.559,
    "l": 21.765
  },
  "oklch": {
    "l": 0.28144,
    "c": 0.11048,
    "h": 296.2
  },
  "luminance": 0.01946
}

Semantic roles & 50–950 ramp

primary
#301758
secondary
#6F8F3C
accent
#E246A6
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #301758

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

Preview Lab → · Contrast checker → · Palette generator →

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