#30278A#30278A

#30278A is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.4% C 0.157 H 278.8°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#30278A
RGBrgb(48, 39, 138)
HSLhsl(245, 56%, 35%)
HSVhsv(245, 72%, 54%)
CMYKcmyk(65.2%, 71.7%, 0%, 45.9%)
CIE-LABlab(23.38, 35.03, -53.66)
CIE-LCHlch(23.38, 64.08, 303.13°)
OKLaboklab(35.45% 0.0241 -0.1548)
OKLCHoklch(35.45% 0.157 278.8)
XYZxyz(6.5304, 3.9139, 24.4511)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30278A #818A27
analogous
#274F8A #30278A #62278A
triadic
#30278A #8A3027 #278A30
tetradic
#30278A #8A274F #818A27 #278A62
square
#30278A #8A274F #818A27 #278A62
split-complementary
#30278A #8A6227 #4F8A27
monochromatic
#0F0C2B #1F1A5A #30278A #4134BA #665BD1

Accessibility & contrast

On white

11.78
#30278A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#30278A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30278A
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30278A#FFFFFF#000000##FFFFFF
##30278A1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003488
Tritanopia (blue-blind)
#004255
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #30278a;
/* rgb */ color: rgb(48, 39, 138);
/* oklch */ color: oklch(35.4% 0.157 278.8);
Tailwind
colors: {
  custom: {
    50: '#7462ad',
    500: '#30278a',
    950: '#000000',
  },
}
SCSS
$custom: #30278a;
$custom-light: #7462ad;
$custom-dark: #000000;
JSON
{
  "hex": "#30278a",
  "rgb": {
    "r": 48,
    "g": 39,
    "b": 138
  },
  "hsl": {
    "h": 245.455,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35448,
    "c": 0.15667,
    "h": 278.8
  },
  "luminance": 0.03914
}

Semantic roles & 50–950 ramp

primary
#30278A
secondary
#ADB657
accent
#DF49D2
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #30278A

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

Preview Lab → · Contrast checker → · Palette generator →

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