#30308E#30308E

#30308E is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.3% C 0.151 H 276.2°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#30308E
RGBrgb(48, 48, 142)
HSLhsl(240, 49%, 37%)
HSVhsv(240, 66%, 56%)
CMYKcmyk(66.2%, 66.2%, 0%, 44.3%)
CIE-LABlab(25.85, 30.76, -52.11)
CIE-LCHlch(25.85, 60.52, 300.55°)
OKLaboklab(37.34% 0.0163 -0.1503)
OKLCHoklch(37.34% 0.151 276.2)
XYZxyz(7.1568, 4.6947, 26.1150)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30308E #8E8E30
analogous
#305F8E #30308E #5F308E
triadic
#30308E #8E3030 #308E30
tetradic
#30308E #8E305F #8E8E30 #308E5F
square
#30308E #8E305F #8E8E30 #308E5F
split-complementary
#30308E #8E5F30 #5F8E30
monochromatic
#111133 #212160 #30308E #3F3FBC #6B6BCD

Accessibility & contrast

On white

10.83
#30308E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#30308E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30308E
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30308E#FFFFFF#000000##FFFFFF
##30308E1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#00398C
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #30308e;
/* rgb */ color: rgb(48, 48, 142);
/* oklch */ color: oklch(37.3% 0.151 276.2);
Tailwind
colors: {
  custom: {
    50: '#7468b0',
    500: '#30308e',
    950: '#000000',
  },
}
SCSS
$custom: #30308e;
$custom-light: #7468b0;
$custom-dark: #000000;
JSON
{
  "hex": "#30308e",
  "rgb": {
    "r": 48,
    "g": 48,
    "b": 142
  },
  "hsl": {
    "h": 240,
    "s": 49.474,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37342,
    "c": 0.15116,
    "h": 276.2
  },
  "luminance": 0.04695
}

Semantic roles & 50–950 ramp

primary
#30308E
secondary
#B4B465
accent
#D94FD9
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #30308E

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

Preview Lab → · Contrast checker → · Palette generator →

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