#30278B#30278B

#30278B is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.5% C 0.158 H 278.7°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#30278B
RGBrgb(48, 39, 139)
HSLhsl(245, 56%, 35%)
HSVhsv(245, 72%, 55%)
CMYKcmyk(65.5%, 71.9%, 0%, 45.5%)
CIE-LABlab(23.48, 35.36, -54.12)
CIE-LCHlch(23.48, 64.65, 303.16°)
OKLaboklab(35.55% 0.0239 -0.1562)
OKLCHoklch(35.55% 0.158 278.7)
XYZxyz(6.6031, 3.9430, 24.8342)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30278B #828B27
analogous
#27508B #30278B #62278B
triadic
#30278B #8B3027 #278B30
tetradic
#30278B #8B2750 #828B27 #278B62
square
#30278B #8B2750 #828B27 #278B62
split-complementary
#30278B #8B6227 #508B27
monochromatic
#0F0C2B #1F1A5B #30278B #4134BB #665BD1

Accessibility & contrast

On white

11.74
#30278B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30278B
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30278B#FFFFFF#000000##FFFFFF
##30278B1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003489
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #30278b;
/* rgb */ color: rgb(48, 39, 139);
/* oklch */ color: oklch(35.5% 0.158 278.7);
Tailwind
colors: {
  custom: {
    50: '#7562ae',
    500: '#30278b',
    950: '#000000',
  },
}
SCSS
$custom: #30278b;
$custom-light: #7562ae;
$custom-dark: #000000;
JSON
{
  "hex": "#30278b",
  "rgb": {
    "r": 48,
    "g": 39,
    "b": 139
  },
  "hsl": {
    "h": 245.4,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35548,
    "c": 0.15799,
    "h": 278.7
  },
  "luminance": 0.03943
}

Semantic roles & 50–950 ramp

primary
#30278B
secondary
#AEB658
accent
#DF48D2
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #30278B

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

Preview Lab → · Contrast checker → · Palette generator →

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