#30229C#30229C

#30229C is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.6% C 0.185 H 277.3°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#30229C
RGBrgb(48, 34, 156)
HSLhsl(247, 64%, 37%)
HSVhsv(247, 78%, 61%)
CMYKcmyk(69.2%, 78.2%, 0%, 38.8%)
CIE-LABlab(24.23, 43.77, -63.39)
CIE-LCHlch(24.23, 77.03, 304.63°)
OKLaboklab(36.61% 0.0234 -0.1832)
OKLCHoklch(36.61% 0.185 277.3)
XYZxyz(7.7898, 4.1720, 31.8408)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30229C #8E9C22
analogous
#22519C #30229C #6D229C
triadic
#30229C #9C3022 #229C30
tetradic
#30229C #9C2251 #8E9C22 #229C6D
square
#30229C #9C2251 #8E9C22 #229C6D
split-complementary
#30229C #9C6D22 #519C22
monochromatic
#110C38 #21176A #30229C #3F2DCE #6B5DDC

Accessibility & contrast

On white

11.45
#30229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#30229C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30229C
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30229C#FFFFFF#000000##FFFFFF
##30229C1.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9F
Deuteranopia (green-blind)
#00349A
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #30229c;
/* rgb */ color: rgb(48, 34, 156);
/* oklch */ color: oklch(36.6% 0.185 277.3);
Tailwind
colors: {
  custom: {
    50: '#7960ba',
    500: '#30229c',
    950: '#000000',
  },
}
SCSS
$custom: #30229c;
$custom-light: #7960ba;
$custom-dark: #000000;
JSON
{
  "hex": "#30229c",
  "rgb": {
    "r": 48,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 246.885,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36606,
    "c": 0.18465,
    "h": 277.3
  },
  "luminance": 0.04173
}

Semantic roles & 50–950 ramp

primary
#30229C
secondary
#B4C05A
accent
#E741D4
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #30229C

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

Preview Lab → · Contrast checker → · Palette generator →

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