#30228A#30228A

#30228A is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.162 H 279.9°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#30228A
RGBrgb(48, 34, 138)
HSLhsl(248, 60%, 34%)
HSVhsv(248, 75%, 54%)
CMYKcmyk(65.2%, 75.4%, 0%, 45.9%)
CIE-LABlab(22.33, 37.97, -55.40)
CIE-LCHlch(22.33, 67.16, 304.43°)
OKLaboklab(34.7% 0.0278 -0.1599)
OKLCHoklch(34.7% 0.162 279.9)
XYZxyz(6.3769, 3.6069, 24.4000)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30228A #7C8A22
analogous
#22488A #30228A #64228A
triadic
#30228A #8A3022 #228A30
tetradic
#30228A #8A2248 #7C8A22 #228A64
square
#30228A #8A2248 #7C8A22 #228A64
split-complementary
#30228A #8A6422 #488A22
monochromatic
#0E0A28 #1F1659 #30228A #412EBB #6452D4

Accessibility & contrast

On white

12.20
#30228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#30228A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30228A
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30228A#FFFFFF#000000##FFFFFF
##30228A1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398D
Deuteranopia (green-blind)
#003188
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #30228a;
/* rgb */ color: rgb(48, 34, 138);
/* oklch */ color: oklch(34.7% 0.162 279.9);
Tailwind
colors: {
  custom: {
    50: '#755fad',
    500: '#30228a',
    950: '#000000',
  },
}
SCSS
$custom: #30228a;
$custom-light: #755fad;
$custom-dark: #000000;
JSON
{
  "hex": "#30228a",
  "rgb": {
    "r": 48,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 248.077,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34695,
    "c": 0.16226,
    "h": 279.9
  },
  "luminance": 0.03607
}

Semantic roles & 50–950 ramp

primary
#30228A
secondary
#AAB850
accent
#E444CE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #30228A

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

Preview Lab → · Contrast checker → · Palette generator →

#30228A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva