#30228F#30228F

#30228F is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.2% C 0.169 H 279.1°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#30228F
RGBrgb(48, 34, 143)
HSLhsl(248, 62%, 35%)
HSVhsv(248, 76%, 56%)
CMYKcmyk(66.4%, 76.2%, 0%, 43.9%)
CIE-LABlab(22.84, 39.60, -57.66)
CIE-LCHlch(22.84, 69.95, 304.48°)
OKLaboklab(35.22% 0.0266 -0.1665)
OKLCHoklch(35.22% 0.169 279.1)
XYZxyz(6.7473, 3.7551, 26.3505)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30228F #818F22
analogous
#224B8F #30228F #66228F
triadic
#30228F #8F3022 #228F30
tetradic
#30228F #8F224B #818F22 #228F66
square
#30228F #8F224B #818F22 #228F66
split-complementary
#30228F #8F6622 #4B8F22
monochromatic
#0F0A2C #1F165E #30228F #412EC0 #6655D7

Accessibility & contrast

On white

11.99
#30228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#30228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30228F
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30228F#FFFFFF#000000##FFFFFF
##30228F1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#004157
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #30228f;
/* rgb */ color: rgb(48, 34, 143);
/* oklch */ color: oklch(35.2% 0.169 279.1);
Tailwind
colors: {
  custom: {
    50: '#765fb1',
    500: '#30228f',
    950: '#000000',
  },
}
SCSS
$custom: #30228f;
$custom-light: #765fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#30228f",
  "rgb": {
    "r": 48,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 247.706,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35216,
    "c": 0.16859,
    "h": 279.1
  },
  "luminance": 0.03756
}

Semantic roles & 50–950 ramp

primary
#30228F
secondary
#ADBA52
accent
#E543D0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #30228F

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

Preview Lab → · Contrast checker → · Palette generator →

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