#30398F#30398F

#30398F is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.1% C 0.141 H 273.4°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#30398F
RGBrgb(48, 57, 143)
HSLhsl(234, 50%, 37%)
HSVhsv(234, 66%, 56%)
CMYKcmyk(66.4%, 60.1%, 0%, 43.9%)
CIE-LABlab(28.21, 25.20, -48.87)
CIE-LCHlch(28.21, 54.98, 297.27°)
OKLaboklab(39.11% 0.0084 -0.1407)
OKLCHoklch(39.11% 0.141 273.4)
XYZxyz(7.6383, 5.5371, 26.6475)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30398F #8F8630
analogous
#30688F #30398F #57308F
triadic
#30398F #8F3039 #398F30
tetradic
#30398F #8F3068 #8F8630 #308F57
square
#30398F #8F3068 #8F8630 #308F57
split-complementary
#30398F #8F5730 #688F30
monochromatic
#111433 #212761 #30398F #3F4BBD #6C75CE

Accessibility & contrast

On white

9.96
#30398F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#30398F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30398F
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30398F#FFFFFF#000000##FFFFFF
##30398F1.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#003E8D
Tritanopia (blue-blind)
#004E5E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #30398f;
/* rgb */ color: rgb(48, 57, 143);
/* oklch */ color: oklch(39.1% 0.141 273.4);
Tailwind
colors: {
  custom: {
    50: '#746fb0',
    500: '#30398f',
    950: '#000000',
  },
}
SCSS
$custom: #30398f;
$custom-light: #746fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#30398f",
  "rgb": {
    "r": 48,
    "g": 57,
    "b": 143
  },
  "hsl": {
    "h": 234.316,
    "s": 49.738,
    "l": 37.451
  },
  "oklch": {
    "l": 0.3911,
    "c": 0.14093,
    "h": 273.4
  },
  "luminance": 0.05538
}

Semantic roles & 50–950 ramp

primary
#30398F
secondary
#B5AD66
accent
#CC4FD9
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090711
muted
#7B7A80

Preview Lab

Preview with #30398F

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

Preview Lab → · Contrast checker → · Palette generator →

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