#30298B#30298B

#30298B is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.9% C 0.156 H 278.3°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#30298B
RGBrgb(48, 41, 139)
HSLhsl(244, 54%, 35%)
HSVhsv(244, 71%, 55%)
CMYKcmyk(65.5%, 70.5%, 0%, 45.5%)
CIE-LABlab(23.93, 34.14, -53.39)
CIE-LCHlch(23.93, 63.38, 302.60°)
OKLaboklab(35.87% 0.0224 -0.154)
OKLCHoklch(35.87% 0.156 278.3)
XYZxyz(6.6706, 4.0778, 24.8567)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30298B #848B29
analogous
#29538B #30298B #61298B
triadic
#30298B #8B3029 #298B30
tetradic
#30298B #8B2953 #848B29 #298B61
square
#30298B #8B2953 #848B29 #298B61
split-complementary
#30298B #8B6129 #538B29
monochromatic
#0F0D2C #201B5C #30298B #4037BA #675FD0

Accessibility & contrast

On white

11.57
#30298B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30298B
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30298B#FFFFFF#000000##FFFFFF
##30298B1.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003589
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #30298b;
/* rgb */ color: rgb(48, 41, 139);
/* oklch */ color: oklch(35.9% 0.156 278.3);
Tailwind
colors: {
  custom: {
    50: '#7464ae',
    500: '#30298b',
    950: '#000000',
  },
}
SCSS
$custom: #30298b;
$custom-light: #7464ae;
$custom-dark: #000000;
JSON
{
  "hex": "#30298b",
  "rgb": {
    "r": 48,
    "g": 41,
    "b": 139
  },
  "hsl": {
    "h": 244.286,
    "s": 54.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35867,
    "c": 0.15565,
    "h": 278.3
  },
  "luminance": 0.04078
}

Semantic roles & 50–950 ramp

primary
#30298B
secondary
#AFB55B
accent
#DE4AD3
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #30298B

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

Preview Lab → · Contrast checker → · Palette generator →

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