#30298C#30298C

#30298C is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.0% C 0.157 H 278.1°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#30298C
RGBrgb(48, 41, 140)
HSLhsl(244, 55%, 35%)
HSVhsv(244, 71%, 55%)
CMYKcmyk(65.7%, 70.7%, 0%, 45.1%)
CIE-LABlab(24.02, 34.48, -53.86)
CIE-LCHlch(24.02, 63.95, 302.63°)
OKLaboklab(35.97% 0.0222 -0.1554)
OKLCHoklch(35.97% 0.157 278.1)
XYZxyz(6.7440, 4.1072, 25.2432)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30298C #858C29
analogous
#29548C #30298C #61298C
triadic
#30298C #8C3029 #298C30
tetradic
#30298C #8C2954 #858C29 #298C61
square
#30298C #8C2954 #858C29 #298C61
split-complementary
#30298C #8C6129 #548C29
monochromatic
#100D2D #201B5D #30298C #4037BB #675FD0

Accessibility & contrast

On white

11.53
#30298C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#30298C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30298C
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30298C#FFFFFF#000000##FFFFFF
##30298C1.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8F
Deuteranopia (green-blind)
#00358A
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #30298c;
/* rgb */ color: rgb(48, 41, 140);
/* oklch */ color: oklch(36.0% 0.157 278.1);
Tailwind
colors: {
  custom: {
    50: '#7564af',
    500: '#30298c',
    950: '#000000',
  },
}
SCSS
$custom: #30298c;
$custom-light: #7564af;
$custom-dark: #000000;
JSON
{
  "hex": "#30298c",
  "rgb": {
    "r": 48,
    "g": 41,
    "b": 140
  },
  "hsl": {
    "h": 244.242,
    "s": 54.696,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35965,
    "c": 0.15698,
    "h": 278.1
  },
  "luminance": 0.04108
}

Semantic roles & 50–950 ramp

primary
#30298C
secondary
#AFB65B
accent
#DE4AD4
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #30298C

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

Preview Lab → · Contrast checker → · Palette generator →

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