#30308B#30308B

#30308B is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.1% C 0.147 H 276.5°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#30308B
RGBrgb(48, 48, 139)
HSLhsl(240, 49%, 37%)
HSVhsv(240, 65%, 55%)
CMYKcmyk(65.5%, 65.5%, 0%, 45.5%)
CIE-LABlab(25.58, 29.70, -50.69)
CIE-LCHlch(25.58, 58.75, 300.37°)
OKLaboklab(37.07% 0.0166 -0.1461)
OKLCHoklch(37.07% 0.147 276.5)
XYZxyz(6.9346, 4.6058, 24.9447)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30308B #8B8B30
analogous
#305E8B #30308B #5E308B
triadic
#30308B #8B3030 #308B30
tetradic
#30308B #8B305E #8B8B30 #308B5E
square
#30308B #8B305E #8B8B30 #308B5E
split-complementary
#30308B #8B5E30 #5E8B30
monochromatic
#111130 #20205E #30308B #4040B8 #6A6ACC

Accessibility & contrast

On white

10.93
#30308B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#30308B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30308B
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30308B#FFFFFF#000000##FFFFFF
##30308B1.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418E
Deuteranopia (green-blind)
#003989
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #30308b;
/* rgb */ color: rgb(48, 48, 139);
/* oklch */ color: oklch(37.1% 0.147 276.5);
Tailwind
colors: {
  custom: {
    50: '#7468ae',
    500: '#30308b',
    950: '#000000',
  },
}
SCSS
$custom: #30308b;
$custom-light: #7468ae;
$custom-dark: #000000;
JSON
{
  "hex": "#30308b",
  "rgb": {
    "r": 48,
    "g": 48,
    "b": 139
  },
  "hsl": {
    "h": 240,
    "s": 48.663,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37066,
    "c": 0.14702,
    "h": 276.5
  },
  "luminance": 0.04606
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #30308B

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

Preview Lab → · Contrast checker → · Palette generator →

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