#303AAA#303AAA

#303AAA is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.7% C 0.177 H 272.1°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#303AAA
RGBrgb(48, 58, 170)
HSLhsl(235, 56%, 43%)
HSVhsv(235, 72%, 67%)
CMYKcmyk(71.8%, 65.9%, 0%, 33.3%)
CIE-LABlab(30.77, 34.32, -61.10)
CIE-LCHlch(30.77, 70.08, 299.32°)
OKLaboklab(41.71% 0.0065 -0.1766)
OKLCHoklch(41.71% 0.177 272.1)
XYZxyz(9.9852, 6.5558, 38.7616)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303AAA #AAA030
analogous
#3077AA #303AAA #6330AA
triadic
#303AAA #AA303A #3AAA30
tetradic
#303AAA #AA3077 #AAA030 #30AA63
square
#303AAA #AA3077 #AAA030 #30AA63
split-complementary
#303AAA #AA6330 #77AA30
monochromatic
#15194B #232A7A #303AAA #4B56CC #7B83DA

Accessibility & contrast

On white

9.09
#303AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#303AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303AAA
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303AAA#FFFFFF#000000##FFFFFF
##303AAA1.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAE
Deuteranopia (green-blind)
#0043A8
Tritanopia (blue-blind)
#00576D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #303aaa;
/* rgb */ color: rgb(48, 58, 170);
/* oklch */ color: oklch(41.7% 0.177 272.1);
Tailwind
colors: {
  custom: {
    50: '#7a70c4',
    500: '#303aaa',
    950: '#000000',
  },
}
SCSS
$custom: #303aaa;
$custom-light: #7a70c4;
$custom-dark: #000000;
JSON
{
  "hex": "#303aaa",
  "rgb": {
    "r": 48,
    "g": 58,
    "b": 170
  },
  "hsl": {
    "h": 235.082,
    "s": 55.963,
    "l": 42.745
  },
  "oklch": {
    "l": 0.41711,
    "c": 0.17667,
    "h": 272.1
  },
  "luminance": 0.06557
}

Semantic roles & 50–950 ramp

primary
#303AAA
secondary
#C2BC74
accent
#D349DF
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #303AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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