#30227E#30227E

#30227E is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.147 H 281.9°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#30227E
RGBrgb(48, 34, 126)
HSLhsl(249, 58%, 31%)
HSVhsv(249, 73%, 49%)
CMYKcmyk(61.9%, 73%, 0%, 50.6%)
CIE-LABlab(21.13, 34.02, -49.82)
CIE-LCHlch(21.13, 60.33, 304.33°)
OKLaboklab(33.48% 0.0303 -0.1436)
OKLCHoklch(33.48% 0.147 281.9)
XYZxyz(5.5557, 3.2784, 20.0747)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30227E #707E22
analogous
#22427E #30227E #5E227E
triadic
#30227E #7E3022 #227E30
tetradic
#30227E #7E2242 #707E22 #227E5E
square
#30227E #7E2242 #707E22 #227E5E
split-complementary
#30227E #7E5E22 #427E22
monochromatic
#0B081E #1E154E #30227E #422FAE #604CCF

Accessibility & contrast

On white

12.68
#30227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#30227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30227E
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30227E#FFFFFF#000000##FFFFFF
##30227E1.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #30227e;
/* rgb */ color: rgb(48, 34, 126);
/* oklch */ color: oklch(33.5% 0.147 281.9);
Tailwind
colors: {
  custom: {
    50: '#725fa4',
    500: '#30227e',
    950: '#000000',
  },
}
SCSS
$custom: #30227e;
$custom-light: #725fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#30227e",
  "rgb": {
    "r": 48,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 249.13,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33477,
    "c": 0.14673,
    "h": 281.9
  },
  "luminance": 0.03279
}

Semantic roles & 50–950 ramp

primary
#30227E
secondary
#A1B14B
accent
#E147C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #30227E

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

Preview Lab → · Contrast checker → · Palette generator →

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