#30228E#30228E

#30228E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.167 H 279.2°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#30228E
RGBrgb(48, 34, 142)
HSLhsl(248, 61%, 35%)
HSVhsv(248, 76%, 56%)
CMYKcmyk(66.2%, 76.1%, 0%, 44.3%)
CIE-LABlab(22.74, 39.27, -57.21)
CIE-LCHlch(22.74, 69.39, 304.47°)
OKLaboklab(35.11% 0.0268 -0.1652)
OKLCHoklch(35.11% 0.167 279.2)
XYZxyz(6.6719, 3.7249, 25.9533)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30228E #808E22
analogous
#224A8E #30228E #66228E
triadic
#30228E #8E3022 #228E30
tetradic
#30228E #8E224A #808E22 #228E66
square
#30228E #8E224A #808E22 #228E66
split-complementary
#30228E #8E6622 #4A8E22
monochromatic
#0F0A2B #1F165D #30228E #412EBF #6554D6

Accessibility & contrast

On white

12.03
#30228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#30228E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30228E
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30228E#FFFFFF#000000##FFFFFF
##30228E1.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#00328C
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #30228e;
/* rgb */ color: rgb(48, 34, 142);
/* oklch */ color: oklch(35.1% 0.167 279.2);
Tailwind
colors: {
  custom: {
    50: '#765fb0',
    500: '#30228e',
    950: '#000000',
  },
}
SCSS
$custom: #30228e;
$custom-light: #765fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#30228e",
  "rgb": {
    "r": 48,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 247.778,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35112,
    "c": 0.16733,
    "h": 279.2
  },
  "luminance": 0.03725
}

Semantic roles & 50–950 ramp

primary
#30228E
secondary
#ACBA52
accent
#E443D0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #30228E

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

Preview Lab → · Contrast checker → · Palette generator →

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