#30236F#30236F

#30236F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.2% C 0.125 H 284.7°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#30236F
RGBrgb(48, 35, 111)
HSLhsl(250, 52%, 29%)
HSVhsv(250, 68%, 44%)
CMYKcmyk(56.8%, 68.5%, 0%, 56.5%)
CIE-LABlab(19.96, 28.39, -42.13)
CIE-LCHlch(19.96, 50.80, 303.98°)
OKLaboklab(32.2% 0.0319 -0.121)
OKLCHoklch(32.2% 0.125 284.7)
XYZxyz(4.6883, 2.9779, 15.3636)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30236F #626F23
analogous
#233C6F #30236F #56236F
triadic
#30236F #6F3023 #236F30
tetradic
#30236F #6F233C #626F23 #236F56
square
#30236F #6F233C #626F23 #236F56
split-complementary
#30236F #6F5623 #3C6F23
monochromatic
#0A0717 #1C1440 #30236F #44329E #5D47C5

Accessibility & contrast

On white

13.16
#30236F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#30236F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30236F
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30236F#FFFFFF#000000##FFFFFF
##30236F1.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#002E6D
Tritanopia (blue-blind)
#153645
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #30236f;
/* rgb */ color: rgb(48, 35, 111);
/* oklch */ color: oklch(32.2% 0.125 284.7);
Tailwind
colors: {
  custom: {
    50: '#6f5f99',
    500: '#30236f',
    950: '#000000',
  },
}
SCSS
$custom: #30236f;
$custom-light: #6f5f99;
$custom-dark: #000000;
JSON
{
  "hex": "#30236f",
  "rgb": {
    "r": 48,
    "g": 35,
    "b": 111
  },
  "hsl": {
    "h": 250.263,
    "s": 52.055,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32204,
    "c": 0.12512,
    "h": 284.7
  },
  "luminance": 0.02978
}

Semantic roles & 50–950 ramp

primary
#30236F
secondary
#93A24C
accent
#DB4CC3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #30236F

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

Preview Lab → · Contrast checker → · Palette generator →

#30236F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva