#30298E#30298E

#30298E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.2% C 0.160 H 277.9°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#30298E
RGBrgb(48, 41, 142)
HSLhsl(244, 55%, 36%)
HSVhsv(244, 71%, 56%)
CMYKcmyk(66.2%, 71.1%, 0%, 44.3%)
CIE-LABlab(24.22, 35.17, -54.79)
CIE-LCHlch(24.22, 65.10, 302.70°)
OKLaboklab(36.16% 0.0219 -0.1581)
OKLCHoklch(36.16% 0.16 277.9)
XYZxyz(6.8928, 4.1667, 26.0270)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30298E #878E29
analogous
#29548E #30298E #62298E
triadic
#30298E #8E3029 #298E30
tetradic
#30298E #8E2954 #878E29 #298E62
square
#30298E #8E2954 #878E29 #298E62
split-complementary
#30298E #8E6229 #548E29
monochromatic
#100E2F #201B5F #30298E #4037BD #6860D1

Accessibility & contrast

On white

11.45
#30298E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#30298E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30298E
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30298E#FFFFFF#000000##FFFFFF
##30298E1.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00358C
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #30298e;
/* rgb */ color: rgb(48, 41, 142);
/* oklch */ color: oklch(36.2% 0.160 277.9);
Tailwind
colors: {
  custom: {
    50: '#7564b0',
    500: '#30298e',
    950: '#000000',
  },
}
SCSS
$custom: #30298e;
$custom-light: #7564b0;
$custom-dark: #000000;
JSON
{
  "hex": "#30298e",
  "rgb": {
    "r": 48,
    "g": 41,
    "b": 142
  },
  "hsl": {
    "h": 244.158,
    "s": 55.191,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36162,
    "c": 0.15962,
    "h": 277.9
  },
  "luminance": 0.04167
}

Semantic roles & 50–950 ramp

primary
#30298E
secondary
#B1B75C
accent
#DF49D4
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #30298E

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

Preview Lab → · Contrast checker → · Palette generator →

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