#30228B#30228B

#30228B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.164 H 279.7°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#30228B
RGBrgb(48, 34, 139)
HSLhsl(248, 61%, 34%)
HSVhsv(248, 76%, 55%)
CMYKcmyk(65.5%, 75.5%, 0%, 45.5%)
CIE-LABlab(22.43, 38.30, -55.85)
CIE-LCHlch(22.43, 67.72, 304.44°)
OKLaboklab(34.8% 0.0275 -0.1612)
OKLCHoklch(34.8% 0.164 279.7)
XYZxyz(6.4497, 3.6360, 24.7830)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30228B #7D8B22
analogous
#22498B #30228B #65228B
triadic
#30228B #8B3022 #228B30
tetradic
#30228B #8B2249 #7D8B22 #228B65
square
#30228B #8B2249 #7D8B22 #228B65
split-complementary
#30228B #8B6522 #498B22
monochromatic
#0E0A29 #1F165A #30228B #412EBC #6453D5

Accessibility & contrast

On white

12.16
#30228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#30228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30228B
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30228B#FFFFFF#000000##FFFFFF
##30228B1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#003189
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #30228b;
/* rgb */ color: rgb(48, 34, 139);
/* oklch */ color: oklch(34.8% 0.164 279.7);
Tailwind
colors: {
  custom: {
    50: '#755fae',
    500: '#30228b',
    950: '#000000',
  },
}
SCSS
$custom: #30228b;
$custom-light: #755fae;
$custom-dark: #000000;
JSON
{
  "hex": "#30228b",
  "rgb": {
    "r": 48,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 248,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34798,
    "c": 0.16353,
    "h": 279.7
  },
  "luminance": 0.03637
}

Semantic roles & 50–950 ramp

primary
#30228B
secondary
#ABB850
accent
#E444CF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #30228B

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

Preview Lab → · Contrast checker → · Palette generator →

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