#30318F#30318F

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

Color values

HEX#30318F
RGBrgb(48, 49, 143)
HSLhsl(239, 50%, 37%)
HSVhsv(239, 66%, 56%)
CMYKcmyk(66.4%, 65.7%, 0%, 43.9%)
CIE-LABlab(26.18, 30.47, -52.19)
CIE-LCHlch(26.18, 60.43, 300.28°)
OKLaboklab(37.61% 0.0154 -0.1505)
OKLCHoklch(37.61% 0.151 275.9)
XYZxyz(7.2735, 4.8076, 26.5259)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30318F #8F8E30
analogous
#30618F #30318F #5E308F
triadic
#30318F #8F3031 #318F30
tetradic
#30318F #8F3061 #8F8E30 #308F5E
square
#30318F #8F3061 #8F8E30 #308F5E
split-complementary
#30318F #8F5E30 #618F30
monochromatic
#111233 #212161 #30318F #3F41BD #6C6DCE

Accessibility & contrast

On white

10.71
#30318F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30318F
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30318F#FFFFFF#000000##FFFFFF
##30318F1.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #30318f;
/* rgb */ color: rgb(48, 49, 143);
/* oklch */ color: oklch(37.6% 0.151 275.9);
Tailwind
colors: {
  custom: {
    50: '#7569b1',
    500: '#30318f',
    950: '#000000',
  },
}
SCSS
$custom: #30318f;
$custom-light: #7569b1;
$custom-dark: #000000;
JSON
{
  "hex": "#30318f",
  "rgb": {
    "r": 48,
    "g": 49,
    "b": 143
  },
  "hsl": {
    "h": 239.368,
    "s": 49.738,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37612,
    "c": 0.15127,
    "h": 275.9
  },
  "luminance": 0.04808
}

Semantic roles & 50–950 ramp

primary
#30318F
secondary
#B5B466
accent
#D84FD9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #30318F

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

Preview Lab → · Contrast checker → · Palette generator →

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