#30229E#30229E

#30229E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.8% C 0.187 H 277.0°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#30229E
RGBrgb(48, 34, 158)
HSLhsl(247, 65%, 38%)
HSVhsv(247, 78%, 62%)
CMYKcmyk(69.6%, 78.5%, 0%, 38%)
CIE-LABlab(24.45, 44.41, -64.25)
CIE-LCHlch(24.45, 78.10, 304.65°)
OKLaboklab(36.82% 0.0229 -0.1857)
OKLCHoklch(36.82% 0.187 277)
XYZxyz(7.9605, 4.2403, 32.7401)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30229E #909E22
analogous
#22529E #30229E #6E229E
triadic
#30229E #9E3022 #229E30
tetradic
#30229E #9E2252 #909E22 #229E6E
square
#30229E #9E2252 #909E22 #229E6E
split-complementary
#30229E #9E6E22 #529E22
monochromatic
#110C39 #21176C #30229E #3F2DD0 #6C5EDC

Accessibility & contrast

On white

11.36
#30229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#30229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30229E
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30229E#FFFFFF#000000##FFFFFF
##30229E1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA1
Deuteranopia (green-blind)
#00359C
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #30229e;
/* rgb */ color: rgb(48, 34, 158);
/* oklch */ color: oklch(36.8% 0.187 277.0);
Tailwind
colors: {
  custom: {
    50: '#7960bc',
    500: '#30229e',
    950: '#000000',
  },
}
SCSS
$custom: #30229e;
$custom-light: #7960bc;
$custom-dark: #000000;
JSON
{
  "hex": "#30229e",
  "rgb": {
    "r": 48,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 246.774,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36824,
    "c": 0.18706,
    "h": 277
  },
  "luminance": 0.04241
}

Semantic roles & 50–950 ramp

primary
#30229E
secondary
#B5C15B
accent
#E840D5
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #30229E

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

Preview Lab → · Contrast checker → · Palette generator →

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