#30228C#30228C

#30228C is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.9% C 0.165 H 279.5°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#30228C
RGBrgb(48, 34, 140)
HSLhsl(248, 61%, 34%)
HSVhsv(248, 76%, 55%)
CMYKcmyk(65.7%, 75.7%, 0%, 45.1%)
CIE-LABlab(22.53, 38.62, -56.31)
CIE-LCHlch(22.53, 68.28, 304.45°)
OKLaboklab(34.9% 0.0273 -0.1625)
OKLCHoklch(34.9% 0.165 279.5)
XYZxyz(6.5231, 3.6654, 25.1696)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30228C #7E8C22
analogous
#22498C #30228C #65228C
triadic
#30228C #8C3022 #228C30
tetradic
#30228C #8C2249 #7E8C22 #228C65
square
#30228C #8C2249 #7E8C22 #228C65
split-complementary
#30228C #8C6522 #498C22
monochromatic
#0E0A2A #1F165B #30228C #412EBD #6453D5

Accessibility & contrast

On white

12.12
#30228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30228C
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30228C#FFFFFF#000000##FFFFFF
##30228C1.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00328A
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #30228c;
/* rgb */ color: rgb(48, 34, 140);
/* oklch */ color: oklch(34.9% 0.165 279.5);
Tailwind
colors: {
  custom: {
    50: '#755faf',
    500: '#30228c',
    950: '#000000',
  },
}
SCSS
$custom: #30228c;
$custom-light: #755faf;
$custom-dark: #000000;
JSON
{
  "hex": "#30228c",
  "rgb": {
    "r": 48,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 247.925,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34903,
    "c": 0.16481,
    "h": 279.5
  },
  "luminance": 0.03666
}

Semantic roles & 50–950 ramp

primary
#30228C
secondary
#ABB951
accent
#E444CF
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #30228C

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

Preview Lab → · Contrast checker → · Palette generator →

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