#30398C#30398C

#30398C is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.9% C 0.137 H 273.5°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#30398C
RGBrgb(48, 57, 140)
HSLhsl(234, 49%, 37%)
HSVhsv(234, 66%, 55%)
CMYKcmyk(65.7%, 59.3%, 0%, 45.1%)
CIE-LABlab(27.97, 24.10, -47.41)
CIE-LCHlch(27.97, 53.18, 296.94°)
OKLaboklab(38.86% 0.0084 -0.1364)
OKLCHoklch(38.86% 0.137 273.5)
XYZxyz(7.4141, 5.4474, 25.4666)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30398C #8C8330
analogous
#30678C #30398C #55308C
triadic
#30398C #8C3039 #398C30
tetradic
#30398C #8C3067 #8C8330 #308C55
square
#30398C #8C3067 #8C8330 #308C55
split-complementary
#30398C #8C5530 #678C30
monochromatic
#111431 #20265E #30398C #404CBA #6A74CC

Accessibility & contrast

On white

10.05
#30398C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#30398C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30398C
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30398C#FFFFFF#000000##FFFFFF
##30398C1.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #30398c;
/* rgb */ color: rgb(48, 57, 140);
/* oklch */ color: oklch(38.9% 0.137 273.5);
Tailwind
colors: {
  custom: {
    50: '#736fae',
    500: '#30398c',
    950: '#000000',
  },
}
SCSS
$custom: #30398c;
$custom-light: #736fae;
$custom-dark: #000000;
JSON
{
  "hex": "#30398c",
  "rgb": {
    "r": 48,
    "g": 57,
    "b": 140
  },
  "hsl": {
    "h": 234.13,
    "s": 48.936,
    "l": 36.863
  },
  "oklch": {
    "l": 0.38856,
    "c": 0.13664,
    "h": 273.5
  },
  "luminance": 0.05448
}

Semantic roles & 50–950 ramp

primary
#30398C
secondary
#B3AC64
accent
#CB4FD8
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #30398C

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

Preview Lab → · Contrast checker → · Palette generator →

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