#303AA7#303AA7

#303AA7 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.4% C 0.173 H 272.2°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#303AA7
RGBrgb(48, 58, 167)
HSLhsl(235, 55%, 42%)
HSVhsv(235, 71%, 65%)
CMYKcmyk(71.3%, 65.3%, 0%, 34.5%)
CIE-LABlab(30.51, 33.24, -59.74)
CIE-LCHlch(30.51, 68.37, 299.09°)
OKLaboklab(41.43% 0.0067 -0.1726)
OKLCHoklch(41.43% 0.173 272.2)
XYZxyz(9.7047, 6.4436, 37.2840)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303AA7 #A79D30
analogous
#3076A7 #303AA7 #6230A7
triadic
#303AA7 #A7303A #3AA730
tetradic
#303AA7 #A73076 #A79D30 #30A762
square
#303AA7 #A73076 #A79D30 #30A762
split-complementary
#303AA7 #A76230 #76A730
monochromatic
#151948 #222977 #303AA7 #4954CB #7981D8

Accessibility & contrast

On white

9.17
#303AA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#303AA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303AA7
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303AA7#FFFFFF#000000##FFFFFF
##303AA71.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAA
Deuteranopia (green-blind)
#0042A5
Tritanopia (blue-blind)
#00566B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #303aa7;
/* rgb */ color: rgb(48, 58, 167);
/* oklch */ color: oklch(41.4% 0.173 272.2);
Tailwind
colors: {
  custom: {
    50: '#7970c2',
    500: '#303aa7',
    950: '#000000',
  },
}
SCSS
$custom: #303aa7;
$custom-light: #7970c2;
$custom-dark: #000000;
JSON
{
  "hex": "#303aa7",
  "rgb": {
    "r": 48,
    "g": 58,
    "b": 167
  },
  "hsl": {
    "h": 234.958,
    "s": 55.349,
    "l": 42.157
  },
  "oklch": {
    "l": 0.41432,
    "c": 0.1727,
    "h": 272.2
  },
  "luminance": 0.06445
}

Semantic roles & 50–950 ramp

primary
#303AA7
secondary
#C1BA72
accent
#D249DF
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #303AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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