#30398B#30398B

#30398B is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.8% C 0.135 H 273.6°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#30398B
RGBrgb(48, 57, 139)
HSLhsl(234, 49%, 37%)
HSVhsv(234, 65%, 55%)
CMYKcmyk(65.5%, 59%, 0%, 45.5%)
CIE-LABlab(27.89, 23.73, -46.92)
CIE-LCHlch(27.89, 52.58, 296.83°)
OKLaboklab(38.77% 0.0084 -0.1349)
OKLCHoklch(38.77% 0.135 273.6)
XYZxyz(7.3407, 5.4181, 25.0800)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30398B #8B8230
analogous
#30678B #30398B #55308B
triadic
#30398B #8B3039 #398B30
tetradic
#30398B #8B3067 #8B8230 #308B55
square
#30398B #8B3067 #8B8230 #308B55
split-complementary
#30398B #8B5530 #678B30
monochromatic
#111430 #20265E #30398B #404CB8 #6A74CC

Accessibility & contrast

On white

10.08
#30398B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#30398B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30398B
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30398B#FFFFFF#000000##FFFFFF
##30398B1.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468E
Deuteranopia (green-blind)
#003E89
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #30398b;
/* rgb */ color: rgb(48, 57, 139);
/* oklch */ color: oklch(38.8% 0.135 273.6);
Tailwind
colors: {
  custom: {
    50: '#736fae',
    500: '#30398b',
    950: '#000000',
  },
}
SCSS
$custom: #30398b;
$custom-light: #736fae;
$custom-dark: #000000;
JSON
{
  "hex": "#30398b",
  "rgb": {
    "r": 48,
    "g": 57,
    "b": 139
  },
  "hsl": {
    "h": 234.066,
    "s": 48.663,
    "l": 36.667
  },
  "oklch": {
    "l": 0.38772,
    "c": 0.1352,
    "h": 273.6
  },
  "luminance": 0.05419
}

Semantic roles & 50–950 ramp

primary
#30398B
secondary
#B3AB64
accent
#CB50D8
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #30398B

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

Preview Lab → · Contrast checker → · Palette generator →

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