#303AA2#303AA2

#303AA2 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.0% C 0.166 H 272.4°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#303AA2
RGBrgb(48, 58, 162)
HSLhsl(235, 54%, 41%)
HSVhsv(235, 70%, 64%)
CMYKcmyk(70.4%, 64.2%, 0%, 36.5%)
CIE-LABlab(30.06, 31.45, -57.45)
CIE-LCHlch(30.06, 65.49, 298.70°)
OKLaboklab(40.97% 0.007 -0.1658)
OKLCHoklch(40.97% 0.166 272.4)
XYZxyz(9.2514, 6.2622, 34.8966)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303AA2 #A29830
analogous
#3073A2 #303AA2 #5F30A2
triadic
#303AA2 #A2303A #3AA230
tetradic
#303AA2 #A23073 #A29830 #30A25F
square
#303AA2 #A23073 #A29830 #30A25F
split-complementary
#303AA2 #A25F30 #73A230
monochromatic
#141844 #222973 #303AA2 #4752C8 #767ED6

Accessibility & contrast

On white

9.32
#303AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#303AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303AA2
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303AA2#FFFFFF#000000##FFFFFF
##303AA21.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA5
Deuteranopia (green-blind)
#0042A0
Tritanopia (blue-blind)
#005568
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #303aa2;
/* rgb */ color: rgb(48, 58, 162);
/* oklch */ color: oklch(41.0% 0.166 272.4);
Tailwind
colors: {
  custom: {
    50: '#7870be',
    500: '#303aa2',
    950: '#000000',
  },
}
SCSS
$custom: #303aa2;
$custom-light: #7870be;
$custom-dark: #000000;
JSON
{
  "hex": "#303aa2",
  "rgb": {
    "r": 48,
    "g": 58,
    "b": 162
  },
  "hsl": {
    "h": 234.737,
    "s": 54.286,
    "l": 41.176
  },
  "oklch": {
    "l": 0.40973,
    "c": 0.166,
    "h": 272.4
  },
  "luminance": 0.06263
}

Semantic roles & 50–950 ramp

primary
#303AA2
secondary
#BEB86F
accent
#D14ADE
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #303AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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