#303BAC#303BAC

#303BAC is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.1% C 0.178 H 271.8°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#303BAC
RGBrgb(48, 59, 172)
HSLhsl(235, 56%, 43%)
HSVhsv(235, 72%, 67%)
CMYKcmyk(72.1%, 65.7%, 0%, 32.5%)
CIE-LABlab(31.19, 34.40, -61.61)
CIE-LCHlch(31.19, 70.56, 299.17°)
OKLaboklab(42.07% 0.0057 -0.178)
OKLCHoklch(42.07% 0.178 271.8)
XYZxyz(10.2268, 6.7338, 39.7825)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303BAC #ACA130
analogous
#3079AC #303BAC #6330AC
triadic
#303BAC #AC303B #3BAC30
tetradic
#303BAC #AC3079 #ACA130 #30AC63
square
#303BAC #AC3079 #ACA130 #30AC63
split-complementary
#303BAC #AC6330 #79AC30
monochromatic
#151A4C #232B7C #303BAC #4C58CD #7C84DA

Accessibility & contrast

On white

8.95
#303BAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#303BAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303BAC
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303BAC#FFFFFF#000000##FFFFFF
##303BAC1.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #303bac;
/* rgb */ color: rgb(48, 59, 172);
/* oklch */ color: oklch(42.1% 0.178 271.8);
Tailwind
colors: {
  custom: {
    50: '#7a71c6',
    500: '#303bac',
    950: '#000000',
  },
}
SCSS
$custom: #303bac;
$custom-light: #7a71c6;
$custom-dark: #000000;
JSON
{
  "hex": "#303bac",
  "rgb": {
    "r": 48,
    "g": 59,
    "b": 172
  },
  "hsl": {
    "h": 234.677,
    "s": 56.364,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42072,
    "c": 0.17813,
    "h": 271.8
  },
  "luminance": 0.06735
}

Semantic roles & 50–950 ramp

primary
#303BAC
secondary
#C3BC75
accent
#D248E0
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #303BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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