#30308C#30308C

#30308C is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.2% C 0.148 H 276.4°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#30308C
RGBrgb(48, 48, 140)
HSLhsl(240, 49%, 37%)
HSVhsv(240, 66%, 55%)
CMYKcmyk(65.7%, 65.7%, 0%, 45.1%)
CIE-LABlab(25.67, 30.05, -51.16)
CIE-LCHlch(25.67, 59.34, 300.43°)
OKLaboklab(37.16% 0.0165 -0.1475)
OKLCHoklch(37.16% 0.148 276.4)
XYZxyz(7.0080, 4.6352, 25.3312)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30308C #8C8C30
analogous
#305E8C #30308C #5E308C
triadic
#30308C #8C3030 #308C30
tetradic
#30308C #8C305E #8C8C30 #308C5E
square
#30308C #8C305E #8C8C30 #308C5E
split-complementary
#30308C #8C5E30 #5E8C30
monochromatic
#111131 #20205E #30308C #4040BA #6A6ACC

Accessibility & contrast

On white

10.90
#30308C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#30308C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30308C
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30308C#FFFFFF#000000##FFFFFF
##30308C1.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418F
Deuteranopia (green-blind)
#00398A
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #30308c;
/* rgb */ color: rgb(48, 48, 140);
/* oklch */ color: oklch(37.2% 0.148 276.4);
Tailwind
colors: {
  custom: {
    50: '#7468ae',
    500: '#30308c',
    950: '#000000',
  },
}
SCSS
$custom: #30308c;
$custom-light: #7468ae;
$custom-dark: #000000;
JSON
{
  "hex": "#30308c",
  "rgb": {
    "r": 48,
    "g": 48,
    "b": 140
  },
  "hsl": {
    "h": 240,
    "s": 48.936,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37158,
    "c": 0.1484,
    "h": 276.4
  },
  "luminance": 0.04636
}

Semantic roles & 50–950 ramp

primary
#30308C
secondary
#B3B364
accent
#D84FD8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #30308C

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

Preview Lab → · Contrast checker → · Palette generator →

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