#30309C#30309C

#30309C is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.7% C 0.170 H 275.0°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#30309C
RGBrgb(48, 48, 156)
HSLhsl(240, 53%, 40%)
HSVhsv(240, 69%, 61%)
CMYKcmyk(69.2%, 69.2%, 0%, 38.8%)
CIE-LABlab(27.14, 35.67, -58.60)
CIE-LCHlch(27.14, 68.61, 301.33°)
OKLaboklab(38.67% 0.0148 -0.1693)
OKLCHoklch(38.67% 0.17 275)
XYZxyz(8.2746, 5.1418, 32.0024)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30309C #9C9C30
analogous
#30669C #30309C #66309C
triadic
#30309C #9C3030 #309C30
tetradic
#30309C #9C3066 #9C9C30 #309C66
square
#30309C #9C3066 #9C9C30 #309C66
split-complementary
#30309C #9C6630 #669C30
monochromatic
#13133E #22226D #30309C #4444C5 #7373D4

Accessibility & contrast

On white

10.35
#30309C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#30309C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30309C
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30309C#FFFFFF#000000##FFFFFF
##30309C1.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459F
Deuteranopia (green-blind)
#003B9A
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #30309c;
/* rgb */ color: rgb(48, 48, 156);
/* oklch */ color: oklch(38.7% 0.170 275.0);
Tailwind
colors: {
  custom: {
    50: '#7769ba',
    500: '#30309c',
    950: '#000000',
  },
}
SCSS
$custom: #30309c;
$custom-light: #7769ba;
$custom-dark: #000000;
JSON
{
  "hex": "#30309c",
  "rgb": {
    "r": 48,
    "g": 48,
    "b": 156
  },
  "hsl": {
    "h": 240,
    "s": 52.941,
    "l": 40
  },
  "oklch": {
    "l": 0.38673,
    "c": 0.16992,
    "h": 275
  },
  "luminance": 0.05143
}

Semantic roles & 50–950 ramp

primary
#30309C
secondary
#BCBC6C
accent
#DC4BDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #30309C

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

Preview Lab → · Contrast checker → · Palette generator →

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