#303CAB#303CAB

#303CAB is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.2% C 0.176 H 271.6°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#303CAB
RGBrgb(48, 60, 171)
HSLhsl(234, 56%, 43%)
HSVhsv(234, 72%, 67%)
CMYKcmyk(71.9%, 64.9%, 0%, 32.9%)
CIE-LABlab(31.35, 33.40, -60.76)
CIE-LCHlch(31.35, 69.34, 298.79°)
OKLaboklab(42.16% 0.005 -0.1756)
OKLCHoklch(42.16% 0.176 271.6)
XYZxyz(10.1830, 6.7994, 39.2959)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303CAB #AB9F30
analogous
#307AAB #303CAB #6130AB
triadic
#303CAB #AB303C #3CAB30
tetradic
#303CAB #AB307A #AB9F30 #30AB61
square
#303CAB #AB307A #AB9F30 #30AB61
split-complementary
#303CAB #AB6130 #7AAB30
monochromatic
#151A4B #232B7B #303CAB #4C58CD #7B85DA

Accessibility & contrast

On white

8.90
#303CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#303CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303CAB
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303CAB#FFFFFF#000000##FFFFFF
##303CAB1.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AF
Deuteranopia (green-blind)
#0044A9
Tritanopia (blue-blind)
#00596E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #303cab;
/* rgb */ color: rgb(48, 60, 171);
/* oklch */ color: oklch(42.2% 0.176 271.6);
Tailwind
colors: {
  custom: {
    50: '#7a72c5',
    500: '#303cab',
    950: '#000000',
  },
}
SCSS
$custom: #303cab;
$custom-light: #7a72c5;
$custom-dark: #000000;
JSON
{
  "hex": "#303cab",
  "rgb": {
    "r": 48,
    "g": 60,
    "b": 171
  },
  "hsl": {
    "h": 234.146,
    "s": 56.164,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42157,
    "c": 0.17562,
    "h": 271.6
  },
  "luminance": 0.068
}

Semantic roles & 50–950 ramp

primary
#303CAB
secondary
#C3BB74
accent
#D148DF
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #303CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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