#30398D#30398D

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

Color values

HEX#30398D
RGBrgb(48, 57, 141)
HSLhsl(234, 49%, 37%)
HSVhsv(234, 66%, 55%)
CMYKcmyk(66%, 59.6%, 0%, 44.7%)
CIE-LABlab(28.05, 24.46, -47.90)
CIE-LCHlch(28.05, 53.78, 297.05°)
OKLaboklab(38.94% 0.0084 -0.1378)
OKLCHoklch(38.94% 0.138 273.5)
XYZxyz(7.4882, 5.4771, 25.8567)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30398D #8D8430
analogous
#30678D #30398D #56308D
triadic
#30398D #8D3039 #398D30
tetradic
#30398D #8D3067 #8D8430 #308D56
square
#30398D #8D3067 #8D8430 #308D56
split-complementary
#30398D #8D5630 #678D30
monochromatic
#111432 #20275F #30398D #404BBB #6B74CD

Accessibility & contrast

On white

10.02
#30398D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#30398D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30398D
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30398D#FFFFFF#000000##FFFFFF
##30398D1.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004690
Deuteranopia (green-blind)
#003E8B
Tritanopia (blue-blind)
#004D5D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #30398d;
/* rgb */ color: rgb(48, 57, 141);
/* oklch */ color: oklch(38.9% 0.138 273.5);
Tailwind
colors: {
  custom: {
    50: '#736faf',
    500: '#30398d',
    950: '#000000',
  },
}
SCSS
$custom: #30398d;
$custom-light: #736faf;
$custom-dark: #000000;
JSON
{
  "hex": "#30398d",
  "rgb": {
    "r": 48,
    "g": 57,
    "b": 141
  },
  "hsl": {
    "h": 234.194,
    "s": 49.206,
    "l": 37.059
  },
  "oklch": {
    "l": 0.3894,
    "c": 0.13808,
    "h": 273.5
  },
  "luminance": 0.05478
}

Semantic roles & 50–950 ramp

primary
#30398D
secondary
#B4AC65
accent
#CB4FD9
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #30398D

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

Preview Lab → · Contrast checker → · Palette generator →

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