#30227C#30227C

#30227C is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.144 H 282.3°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#30227C
RGBrgb(48, 34, 124)
HSLhsl(249, 57%, 31%)
HSVhsv(249, 73%, 49%)
CMYKcmyk(61.3%, 72.6%, 0%, 51.4%)
CIE-LABlab(20.93, 33.36, -48.87)
CIE-LCHlch(20.93, 59.17, 304.32°)
OKLaboklab(33.28% 0.0307 -0.1408)
OKLCHoklch(33.28% 0.144 282.3)
XYZxyz(5.4279, 3.2273, 19.4018)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30227C #6E7C22
analogous
#22417C #30227C #5D227C
triadic
#30227C #7C3022 #227C30
tetradic
#30227C #7C2241 #6E7C22 #227C5D
square
#30227C #7C2241 #6E7C22 #227C5D
split-complementary
#30227C #7C5D22 #417C22
monochromatic
#0B081C #1D154C #30227C #432FAC #5F4BCE

Accessibility & contrast

On white

12.76
#30227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#30227C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30227C
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30227C#FFFFFF#000000##FFFFFF
##30227C1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #30227c;
/* rgb */ color: rgb(48, 34, 124);
/* oklch */ color: oklch(33.3% 0.144 282.3);
Tailwind
colors: {
  custom: {
    50: '#725ea3',
    500: '#30227c',
    950: '#000000',
  },
}
SCSS
$custom: #30227c;
$custom-light: #725ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#30227c",
  "rgb": {
    "r": 48,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 249.333,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33279,
    "c": 0.14408,
    "h": 282.3
  },
  "luminance": 0.03228
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #30227C

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

Preview Lab → · Contrast checker → · Palette generator →

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