#30338A#30338A

#30338A is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.5% C 0.142 H 275.7°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#30338A
RGBrgb(48, 51, 138)
HSLhsl(238, 48%, 36%)
HSVhsv(238, 65%, 54%)
CMYKcmyk(65.2%, 63%, 0%, 45.9%)
CIE-LABlab(26.25, 27.38, -48.98)
CIE-LCHlch(26.25, 56.11, 299.20°)
OKLaboklab(37.53% 0.014 -0.141)
OKLCHoklch(37.53% 0.142 275.7)
XYZxyz(6.9887, 4.8304, 24.6039)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30338A #8A8730
analogous
#30608A #30338A #5A308A
triadic
#30338A #8A3033 #338A30
tetradic
#30338A #8A3060 #8A8730 #308A5A
square
#30338A #8A3060 #8A8730 #308A5A
split-complementary
#30338A #8A5A30 #608A30
monochromatic
#10112F #20225D #30338A #4044B7 #696DCB

Accessibility & contrast

On white

10.68
#30338A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#30338A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30338A
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30338A#FFFFFF#000000##FFFFFF
##30338A1.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428D
Deuteranopia (green-blind)
#003A88
Tritanopia (blue-blind)
#004959
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #30338a;
/* rgb */ color: rgb(48, 51, 138);
/* oklch */ color: oklch(37.5% 0.142 275.7);
Tailwind
colors: {
  custom: {
    50: '#736bad',
    500: '#30338a',
    950: '#000000',
  },
}
SCSS
$custom: #30338a;
$custom-light: #736bad;
$custom-dark: #000000;
JSON
{
  "hex": "#30338a",
  "rgb": {
    "r": 48,
    "g": 51,
    "b": 138
  },
  "hsl": {
    "h": 238,
    "s": 48.387,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37527,
    "c": 0.14174,
    "h": 275.7
  },
  "luminance": 0.04831
}

Semantic roles & 50–950 ramp

primary
#30338A
secondary
#B2B064
accent
#D350D8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #30338A

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

Preview Lab → · Contrast checker → · Palette generator →

#30338A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva