#30236E#30236E

#30236E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.1% C 0.124 H 285.0°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#30236E
RGBrgb(48, 35, 110)
HSLhsl(250, 52%, 28%)
HSVhsv(250, 68%, 43%)
CMYKcmyk(56.4%, 68.2%, 0%, 56.9%)
CIE-LABlab(19.87, 28.06, -41.63)
CIE-LCHlch(19.87, 50.20, 303.98°)
OKLaboklab(32.11% 0.032 -0.1195)
OKLCHoklch(32.11% 0.124 285)
XYZxyz(4.6336, 2.9560, 15.0752)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30236E #616E23
analogous
#233B6E #30236E #55236E
triadic
#30236E #6E3023 #236E30
tetradic
#30236E #6E233B #616E23 #236E55
square
#30236E #6E233B #616E23 #236E55
split-complementary
#30236E #6E5523 #3B6E23
monochromatic
#0A0717 #1C1440 #30236E #44329C #5D47C4

Accessibility & contrast

On white

13.20
#30236E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#30236E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30236E
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30236E#FFFFFF#000000##FFFFFF
##30236E1.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #30236e;
/* rgb */ color: rgb(48, 35, 110);
/* oklch */ color: oklch(32.1% 0.124 285.0);
Tailwind
colors: {
  custom: {
    50: '#6f5f98',
    500: '#30236e',
    950: '#000000',
  },
}
SCSS
$custom: #30236e;
$custom-light: #6f5f98;
$custom-dark: #000000;
JSON
{
  "hex": "#30236e",
  "rgb": {
    "r": 48,
    "g": 35,
    "b": 110
  },
  "hsl": {
    "h": 250.4,
    "s": 51.724,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32113,
    "c": 0.12372,
    "h": 285
  },
  "luminance": 0.02956
}

Semantic roles & 50–950 ramp

primary
#30236E
secondary
#92A14C
accent
#DB4DC2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #30236E

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

Preview Lab → · Contrast checker → · Palette generator →

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