#30318D#30318D

#30318D is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.4% C 0.149 H 276.0°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#30318D
RGBrgb(48, 49, 141)
HSLhsl(239, 49%, 37%)
HSVhsv(239, 66%, 55%)
CMYKcmyk(66%, 65.2%, 0%, 44.7%)
CIE-LABlab(26.00, 29.76, -51.24)
CIE-LCHlch(26.00, 59.25, 300.15°)
OKLaboklab(37.43% 0.0156 -0.1477)
OKLCHoklch(37.43% 0.149 276)
XYZxyz(7.1234, 4.7475, 25.7351)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30318D #8D8C30
analogous
#30608D #30318D #5E308D
triadic
#30318D #8D3031 #318D30
tetradic
#30318D #8D3060 #8D8C30 #308D5E
square
#30318D #8D3060 #8D8C30 #308D5E
split-complementary
#30318D #8D5E30 #608D30
monochromatic
#111132 #20215F #30318D #4041BB #6B6CCD

Accessibility & contrast

On white

10.77
#30318D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#30318D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30318D
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30318D#FFFFFF#000000##FFFFFF
##30318D1.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004290
Deuteranopia (green-blind)
#00398B
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #30318d;
/* rgb */ color: rgb(48, 49, 141);
/* oklch */ color: oklch(37.4% 0.149 276.0);
Tailwind
colors: {
  custom: {
    50: '#7469af',
    500: '#30318d',
    950: '#000000',
  },
}
SCSS
$custom: #30318d;
$custom-light: #7469af;
$custom-dark: #000000;
JSON
{
  "hex": "#30318d",
  "rgb": {
    "r": 48,
    "g": 49,
    "b": 141
  },
  "hsl": {
    "h": 239.355,
    "s": 49.206,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37429,
    "c": 0.14851,
    "h": 276
  },
  "luminance": 0.04748
}

Semantic roles & 50–950 ramp

primary
#30318D
secondary
#B4B365
accent
#D74FD9
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #30318D

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

Preview Lab → · Contrast checker → · Palette generator →

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