#303A8A#303A8A

#303A8A is a dark, vivid blue. Relative luminance 0.055; OKLCH L 38.9% C 0.132 H 273.2°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#303A8A
RGBrgb(48, 58, 138)
HSLhsl(233, 48%, 36%)
HSVhsv(233, 65%, 54%)
CMYKcmyk(65.2%, 58%, 0%, 45.9%)
CIE-LABlab(28.08, 22.69, -45.99)
CIE-LCHlch(28.08, 51.28, 296.26°)
OKLaboklab(38.89% 0.0074 -0.1322)
OKLCHoklch(38.89% 0.132 273.2)
XYZxyz(7.3179, 5.4888, 24.7136)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303A8A #8A8030
analogous
#30678A #303A8A #53308A
triadic
#303A8A #8A303A #3A8A30
tetradic
#303A8A #8A3067 #8A8030 #308A53
square
#303A8A #8A3067 #8A8030 #308A53
split-complementary
#303A8A #8A5330 #678A30
monochromatic
#10142F #20275D #303A8A #404DB7 #6974CB

Accessibility & contrast

On white

10.01
#303A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#303A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303A8A
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303A8A#FFFFFF#000000##FFFFFF
##303A8A1.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #303a8a;
/* rgb */ color: rgb(48, 58, 138);
/* oklch */ color: oklch(38.9% 0.132 273.2);
Tailwind
colors: {
  custom: {
    50: '#7370ad',
    500: '#303a8a',
    950: '#000000',
  },
}
SCSS
$custom: #303a8a;
$custom-light: #7370ad;
$custom-dark: #000000;
JSON
{
  "hex": "#303a8a",
  "rgb": {
    "r": 48,
    "g": 58,
    "b": 138
  },
  "hsl": {
    "h": 233.333,
    "s": 48.387,
    "l": 36.471
  },
  "oklch": {
    "l": 0.38889,
    "c": 0.13241,
    "h": 273.2
  },
  "luminance": 0.05489
}

Semantic roles & 50–950 ramp

primary
#303A8A
secondary
#B2A964
accent
#C950D8
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #303A8A

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

Preview Lab → · Contrast checker → · Palette generator →

#303A8A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva