#30227B#30227B

#30227B is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.143 H 282.5°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#30227B
RGBrgb(48, 34, 123)
HSLhsl(249, 57%, 31%)
HSVhsv(249, 72%, 48%)
CMYKcmyk(61%, 72.4%, 0%, 51.8%)
CIE-LABlab(20.84, 33.02, -48.39)
CIE-LCHlch(20.84, 58.59, 304.31°)
OKLaboklab(33.18% 0.0309 -0.1394)
OKLCHoklch(33.18% 0.143 282.5)
XYZxyz(5.3650, 3.2021, 19.0704)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30227B #6D7B22
analogous
#22407B #30227B #5C227B
triadic
#30227B #7B3022 #227B30
tetradic
#30227B #7B2240 #6D7B22 #227B5C
square
#30227B #7B2240 #6D7B22 #227B5C
split-complementary
#30227B #7B5C22 #407B22
monochromatic
#0B071B #1D154B #30227B #432FAB #5F4ACD

Accessibility & contrast

On white

12.80
#30227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#30227B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30227B
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30227B#FFFFFF#000000##FFFFFF
##30227B1.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#023A4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #30227b;
/* rgb */ color: rgb(48, 34, 123);
/* oklch */ color: oklch(33.2% 0.143 282.5);
Tailwind
colors: {
  custom: {
    50: '#725ea2',
    500: '#30227b',
    950: '#000000',
  },
}
SCSS
$custom: #30227b;
$custom-light: #725ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#30227b",
  "rgb": {
    "r": 48,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 249.438,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33181,
    "c": 0.14276,
    "h": 282.5
  },
  "luminance": 0.03202
}

Semantic roles & 50–950 ramp

primary
#30227B
secondary
#9EAE4B
accent
#E048C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #30227B

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

Preview Lab → · Contrast checker → · Palette generator →

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