#303AAC#303AAC

#303AAC is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.9% C 0.179 H 272.0°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#303AAC
RGBrgb(48, 58, 172)
HSLhsl(235, 56%, 43%)
HSVhsv(235, 72%, 67%)
CMYKcmyk(72.1%, 66.3%, 0%, 32.5%)
CIE-LABlab(30.95, 35.03, -62.00)
CIE-LCHlch(30.95, 71.22, 299.47°)
OKLaboklab(41.9% 0.0063 -0.1792)
OKLCHoklch(41.9% 0.179 272)
XYZxyz(10.1759, 6.6320, 39.7656)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303AAC #ACA230
analogous
#3078AC #303AAC #6430AC
triadic
#303AAC #AC303A #3AAC30
tetradic
#303AAC #AC3078 #ACA230 #30AC64
square
#303AAC #AC3078 #ACA230 #30AC64
split-complementary
#303AAC #AC6430 #78AC30
monochromatic
#151A4C #232A7C #303AAC #4C57CD #7C84DA

Accessibility & contrast

On white

9.03
#303AAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#303AAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303AAC
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303AAC#FFFFFF#000000##FFFFFF
##303AAC1.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB0
Deuteranopia (green-blind)
#0043AA
Tritanopia (blue-blind)
#00586E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #303aac;
/* rgb */ color: rgb(48, 58, 172);
/* oklch */ color: oklch(41.9% 0.179 272.0);
Tailwind
colors: {
  custom: {
    50: '#7a70c6',
    500: '#303aac',
    950: '#000000',
  },
}
SCSS
$custom: #303aac;
$custom-light: #7a70c6;
$custom-dark: #000000;
JSON
{
  "hex": "#303aac",
  "rgb": {
    "r": 48,
    "g": 58,
    "b": 172
  },
  "hsl": {
    "h": 235.161,
    "s": 56.364,
    "l": 43.137
  },
  "oklch": {
    "l": 0.41898,
    "c": 0.1793,
    "h": 272
  },
  "luminance": 0.06633
}

Semantic roles & 50–950 ramp

primary
#303AAC
secondary
#C3BD75
accent
#D348E0
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #303AAC

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

Preview Lab → · Contrast checker → · Palette generator →

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