#30318E#30318E

#30318E is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.5% C 0.150 H 275.9°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#30318E
RGBrgb(48, 49, 142)
HSLhsl(239, 49%, 37%)
HSVhsv(239, 66%, 56%)
CMYKcmyk(66.2%, 65.5%, 0%, 44.3%)
CIE-LABlab(26.09, 30.12, -51.71)
CIE-LCHlch(26.09, 59.84, 300.21°)
OKLaboklab(37.52% 0.0155 -0.1491)
OKLCHoklch(37.52% 0.15 275.9)
XYZxyz(7.1981, 4.7774, 26.1287)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30318E #8E8D30
analogous
#30608E #30318E #5E308E
triadic
#30318E #8E3031 #318E30
tetradic
#30318E #8E3060 #8E8D30 #308E5E
square
#30318E #8E3060 #8E8D30 #308E5E
split-complementary
#30318E #8E5E30 #608E30
monochromatic
#111133 #212160 #30318E #3F41BC #6B6CCD

Accessibility & contrast

On white

10.74
#30318E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#30318E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30318E
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30318E#FFFFFF#000000##FFFFFF
##30318E1.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#003A8C
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #30318e;
/* rgb */ color: rgb(48, 49, 142);
/* oklch */ color: oklch(37.5% 0.150 275.9);
Tailwind
colors: {
  custom: {
    50: '#7469b0',
    500: '#30318e',
    950: '#000000',
  },
}
SCSS
$custom: #30318e;
$custom-light: #7469b0;
$custom-dark: #000000;
JSON
{
  "hex": "#30318e",
  "rgb": {
    "r": 48,
    "g": 49,
    "b": 142
  },
  "hsl": {
    "h": 239.362,
    "s": 49.474,
    "l": 37.255
  },
  "oklch": {
    "l": 0.3752,
    "c": 0.14989,
    "h": 275.9
  },
  "luminance": 0.04778
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #30318E

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

Preview Lab → · Contrast checker → · Palette generator →

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