#30278C#30278C

#30278C is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.6% C 0.159 H 278.6°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#30278C
RGBrgb(48, 39, 140)
HSLhsl(245, 56%, 35%)
HSVhsv(245, 72%, 55%)
CMYKcmyk(65.7%, 72.1%, 0%, 45.1%)
CIE-LABlab(23.58, 35.70, -54.59)
CIE-LCHlch(23.58, 65.23, 303.19°)
OKLaboklab(35.65% 0.0237 -0.1575)
OKLCHoklch(35.65% 0.159 278.6)
XYZxyz(6.6765, 3.9723, 25.2208)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30278C #838C27
analogous
#27508C #30278C #63278C
triadic
#30278C #8C3027 #278C30
tetradic
#30278C #8C2750 #838C27 #278C63
square
#30278C #8C2750 #838C27 #278C63
split-complementary
#30278C #8C6327 #508C27
monochromatic
#0F0C2C #201A5C #30278C #4034BC #665CD2

Accessibility & contrast

On white

11.70
#30278C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#30278C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30278C
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30278C#FFFFFF#000000##FFFFFF
##30278C1.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#00348A
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #30278c;
/* rgb */ color: rgb(48, 39, 140);
/* oklch */ color: oklch(35.6% 0.159 278.6);
Tailwind
colors: {
  custom: {
    50: '#7562af',
    500: '#30278c',
    950: '#000000',
  },
}
SCSS
$custom: #30278c;
$custom-light: #7562af;
$custom-dark: #000000;
JSON
{
  "hex": "#30278c",
  "rgb": {
    "r": 48,
    "g": 39,
    "b": 140
  },
  "hsl": {
    "h": 245.347,
    "s": 56.425,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35647,
    "c": 0.1593,
    "h": 278.6
  },
  "luminance": 0.03973
}

Semantic roles & 50–950 ramp

primary
#30278C
secondary
#AEB758
accent
#E048D2
background
#F7F5FA
surface
#EEEAF5
border
#C9C6CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #30278C

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

Preview Lab → · Contrast checker → · Palette generator →

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