#301757#301757

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

Color values

HEX#301757
RGBrgb(48, 23, 87)
HSLhsl(263, 58%, 22%)
HSVhsv(263, 74%, 34%)
CMYKcmyk(44.8%, 73.6%, 0%, 65.9%)
CIE-LABlab(15.11, 28.11, -34.17)
CIE-LCHlch(15.11, 44.25, 309.44°)
OKLaboklab(28.05% 0.0489 -0.0976)
OKLCHoklch(28.05% 0.109 296.6)
XYZxyz(3.2452, 1.9292, 9.2164)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301757 #3E5717
analogous
#171E57 #301757 #501757
triadic
#301757 #573017 #175730
tetradic
#301757 #57171E #3E5717 #175750
square
#301757 #57171E #3E5717 #175750
split-complementary
#301757 #575017 #1E5717
monochromatic
#0D0618 #150A27 #301757 #4B2487 #6531B8

Accessibility & contrast

On white

15.15
#301757 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301757
15.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301757#FFFFFF#000000##FFFFFF
##3017571.0015.151.3915.15
#FFFFFF15.151.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002659
Deuteranopia (green-blind)
#002556
Tritanopia (blue-blind)
#262635
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #301757;
/* rgb */ color: rgb(48, 23, 87);
/* oklch */ color: oklch(28.1% 0.109 296.6);
Tailwind
colors: {
  custom: {
    50: '#6c5687',
    500: '#301757',
    950: '#000000',
  },
}
SCSS
$custom: #301757;
$custom-light: #6c5687;
$custom-dark: #000000;
JSON
{
  "hex": "#301757",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 87
  },
  "hsl": {
    "h": 263.438,
    "s": 58.182,
    "l": 21.569
  },
  "oklch": {
    "l": 0.28053,
    "c": 0.10916,
    "h": 296.6
  },
  "luminance": 0.01929
}

Semantic roles & 50–950 ramp

primary
#301757
secondary
#6E8E3C
accent
#E146A5
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #301757

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

Preview Lab → · Contrast checker → · Palette generator →

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