#30318B#30318B

#30318B is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.2% C 0.146 H 276.2°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#30318B
RGBrgb(48, 49, 139)
HSLhsl(239, 49%, 37%)
HSVhsv(239, 65%, 55%)
CMYKcmyk(65.5%, 64.7%, 0%, 45.5%)
CIE-LABlab(25.83, 29.05, -50.28)
CIE-LCHlch(25.83, 58.07, 300.02°)
OKLaboklab(37.25% 0.0157 -0.1449)
OKLCHoklch(37.25% 0.146 276.2)
XYZxyz(6.9759, 4.6885, 24.9584)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30318B #8B8A30
analogous
#305F8B #30318B #5D308B
triadic
#30318B #8B3031 #318B30
tetradic
#30318B #8B305F #8B8A30 #308B5D
square
#30318B #8B305F #8B8A30 #308B5D
split-complementary
#30318B #8B5D30 #5F8B30
monochromatic
#111130 #20215E #30318B #4041B8 #6A6BCC

Accessibility & contrast

On white

10.84
#30318B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#30318B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30318B
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30318B#FFFFFF#000000##FFFFFF
##30318B1.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418E
Deuteranopia (green-blind)
#003989
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #30318b;
/* rgb */ color: rgb(48, 49, 139);
/* oklch */ color: oklch(37.2% 0.146 276.2);
Tailwind
colors: {
  custom: {
    50: '#7469ae',
    500: '#30318b',
    950: '#000000',
  },
}
SCSS
$custom: #30318b;
$custom-light: #7469ae;
$custom-dark: #000000;
JSON
{
  "hex": "#30318b",
  "rgb": {
    "r": 48,
    "g": 49,
    "b": 139
  },
  "hsl": {
    "h": 239.341,
    "s": 48.663,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37247,
    "c": 0.14574,
    "h": 276.2
  },
  "luminance": 0.04689
}

Semantic roles & 50–950 ramp

primary
#30318B
secondary
#B3B264
accent
#D750D8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #30318B

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

Preview Lab → · Contrast checker → · Palette generator →

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