#30278D#30278D

#30278D is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.7% C 0.161 H 278.4°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#30278D
RGBrgb(48, 39, 141)
HSLhsl(245, 57%, 35%)
HSVhsv(245, 72%, 55%)
CMYKcmyk(66%, 72.3%, 0%, 44.7%)
CIE-LABlab(23.68, 36.04, -55.05)
CIE-LCHlch(23.68, 65.79, 303.21°)
OKLaboklab(35.75% 0.0236 -0.1589)
OKLCHoklch(35.75% 0.161 278.4)
XYZxyz(6.7506, 4.0020, 25.6109)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30278D #848D27
analogous
#27518D #30278D #63278D
triadic
#30278D #8D3027 #278D30
tetradic
#30278D #8D2751 #848D27 #278D63
square
#30278D #8D2751 #848D27 #278D63
split-complementary
#30278D #8D6327 #518D27
monochromatic
#0F0C2D #201A5D #30278D #4034BD #675CD2

Accessibility & contrast

On white

11.66
#30278D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#30278D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30278D
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30278D#FFFFFF#000000##FFFFFF
##30278D1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#00348B
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #30278d;
/* rgb */ color: rgb(48, 39, 141);
/* oklch */ color: oklch(35.7% 0.161 278.4);
Tailwind
colors: {
  custom: {
    50: '#7562af',
    500: '#30278d',
    950: '#000000',
  },
}
SCSS
$custom: #30278d;
$custom-light: #7562af;
$custom-dark: #000000;
JSON
{
  "hex": "#30278d",
  "rgb": {
    "r": 48,
    "g": 39,
    "b": 141
  },
  "hsl": {
    "h": 245.294,
    "s": 56.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35747,
    "c": 0.16061,
    "h": 278.4
  },
  "luminance": 0.04003
}

Semantic roles & 50–950 ramp

primary
#30278D
secondary
#AFB759
accent
#E048D3
background
#F7F5FA
surface
#EEEAF5
border
#C9C6CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #30278D

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

Preview Lab → · Contrast checker → · Palette generator →

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