#30229F#30229F

#30229F is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.9% C 0.188 H 276.9°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#30229F
RGBrgb(48, 34, 159)
HSLhsl(247, 65%, 38%)
HSVhsv(247, 79%, 62%)
CMYKcmyk(69.8%, 78.6%, 0%, 37.6%)
CIE-LABlab(24.56, 44.72, -64.68)
CIE-LCHlch(24.56, 78.63, 304.66°)
OKLaboklab(36.93% 0.0226 -0.1869)
OKLCHoklch(36.93% 0.188 276.9)
XYZxyz(8.0469, 4.2749, 33.1952)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30229F #919F22
analogous
#22529F #30229F #6E229F
triadic
#30229F #9F3022 #229F30
tetradic
#30229F #9F2252 #919F22 #229F6E
square
#30229F #9F2252 #919F22 #229F6E
split-complementary
#30229F #9F6E22 #529F22
monochromatic
#120C3A #21176D #30229F #3F2DD1 #6D5FDD

Accessibility & contrast

On white

11.32
#30229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#30229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30229F
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30229F#FFFFFF#000000##FFFFFF
##30229F1.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA3
Deuteranopia (green-blind)
#00359D
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #30229f;
/* rgb */ color: rgb(48, 34, 159);
/* oklch */ color: oklch(36.9% 0.188 276.9);
Tailwind
colors: {
  custom: {
    50: '#7960bd',
    500: '#30229f',
    950: '#000000',
  },
}
SCSS
$custom: #30229f;
$custom-light: #7960bd;
$custom-dark: #000000;
JSON
{
  "hex": "#30229f",
  "rgb": {
    "r": 48,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 246.72,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.36933,
    "c": 0.18827,
    "h": 276.9
  },
  "luminance": 0.04276
}

Semantic roles & 50–950 ramp

primary
#30229F
secondary
#B6C15B
accent
#E840D5
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #30229F

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

Preview Lab → · Contrast checker → · Palette generator →

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