#30278F#30278F

#30278F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.9% C 0.163 H 278.2°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#30278F
RGBrgb(48, 39, 143)
HSLhsl(245, 57%, 36%)
HSVhsv(245, 73%, 56%)
CMYKcmyk(66.4%, 72.7%, 0%, 43.9%)
CIE-LABlab(23.88, 36.71, -55.96)
CIE-LCHlch(23.88, 66.93, 303.26°)
OKLaboklab(35.95% 0.0232 -0.1615)
OKLCHoklch(35.95% 0.163 278.2)
XYZxyz(6.9008, 4.0620, 26.4017)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30278F #868F27
analogous
#27528F #30278F #64278F
triadic
#30278F #8F3027 #278F30
tetradic
#30278F #8F2752 #868F27 #278F64
square
#30278F #8F2752 #868F27 #278F64
split-complementary
#30278F #8F6427 #528F27
monochromatic
#100D2F #201A5F #30278F #4034BF #685DD3

Accessibility & contrast

On white

11.59
#30278F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#30278F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30278F
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30278F#FFFFFF#000000##FFFFFF
##30278F1.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00348D
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #30278f;
/* rgb */ color: rgb(48, 39, 143);
/* oklch */ color: oklch(35.9% 0.163 278.2);
Tailwind
colors: {
  custom: {
    50: '#7562b1',
    500: '#30278f',
    950: '#000000',
  },
}
SCSS
$custom: #30278f;
$custom-light: #7562b1;
$custom-dark: #000000;
JSON
{
  "hex": "#30278f",
  "rgb": {
    "r": 48,
    "g": 39,
    "b": 143
  },
  "hsl": {
    "h": 245.192,
    "s": 57.143,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35948,
    "c": 0.16321,
    "h": 278.2
  },
  "luminance": 0.04063
}

Semantic roles & 50–950 ramp

primary
#30278F
secondary
#B0B85A
accent
#E047D3
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #30278F

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

Preview Lab → · Contrast checker → · Palette generator →

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