#30228D#30228D

#30228D is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.0% C 0.166 H 279.4°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#30228D
RGBrgb(48, 34, 141)
HSLhsl(248, 61%, 34%)
HSVhsv(248, 76%, 55%)
CMYKcmyk(66%, 75.9%, 0%, 44.7%)
CIE-LABlab(22.64, 38.95, -56.76)
CIE-LCHlch(22.64, 68.84, 304.46°)
OKLaboklab(35.01% 0.0271 -0.1638)
OKLCHoklch(35.01% 0.166 279.4)
XYZxyz(6.5971, 3.6950, 25.5597)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30228D #7F8D22
analogous
#224A8D #30228D #66228D
triadic
#30228D #8D3022 #228D30
tetradic
#30228D #8D224A #7F8D22 #228D66
square
#30228D #8D224A #7F8D22 #228D66
split-complementary
#30228D #8D6622 #4A8D22
monochromatic
#0E0A2A #1F165C #30228D #412EBE #6554D6

Accessibility & contrast

On white

12.07
#30228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#30228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30228D
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30228D#FFFFFF#000000##FFFFFF
##30228D1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00328B
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #30228d;
/* rgb */ color: rgb(48, 34, 141);
/* oklch */ color: oklch(35.0% 0.166 279.4);
Tailwind
colors: {
  custom: {
    50: '#755faf',
    500: '#30228d',
    950: '#000000',
  },
}
SCSS
$custom: #30228d;
$custom-light: #755faf;
$custom-dark: #000000;
JSON
{
  "hex": "#30228d",
  "rgb": {
    "r": 48,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 247.85,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35007,
    "c": 0.16607,
    "h": 279.4
  },
  "luminance": 0.03696
}

Semantic roles & 50–950 ramp

primary
#30228D
secondary
#ACB951
accent
#E444CF
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #30228D

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

Preview Lab → · Contrast checker → · Palette generator →

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