#303BAB#303BAB

#303BAB is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.0% C 0.177 H 271.9°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#303BAB
RGBrgb(48, 59, 171)
HSLhsl(235, 56%, 43%)
HSVhsv(235, 72%, 67%)
CMYKcmyk(71.9%, 65.5%, 0%, 32.9%)
CIE-LABlab(31.10, 34.04, -61.16)
CIE-LCHlch(31.10, 69.99, 299.10°)
OKLaboklab(41.98% 0.0057 -0.1767)
OKLCHoklch(41.98% 0.177 271.9)
XYZxyz(10.1311, 6.6956, 39.2786)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303BAB #ABA030
analogous
#3078AB #303BAB #6230AB
triadic
#303BAB #AB303B #3BAB30
tetradic
#303BAB #AB3078 #ABA030 #30AB62
square
#303BAB #AB3078 #ABA030 #30AB62
split-complementary
#303BAB #AB6230 #78AB30
monochromatic
#151A4B #232B7B #303BAB #4C57CD #7B84DA

Accessibility & contrast

On white

8.98
#303BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#303BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303BAB
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303BAB#FFFFFF#000000##FFFFFF
##303BAB1.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAF
Deuteranopia (green-blind)
#0044A9
Tritanopia (blue-blind)
#00586D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #303bab;
/* rgb */ color: rgb(48, 59, 171);
/* oklch */ color: oklch(42.0% 0.177 271.9);
Tailwind
colors: {
  custom: {
    50: '#7a71c5',
    500: '#303bab',
    950: '#000000',
  },
}
SCSS
$custom: #303bab;
$custom-light: #7a71c5;
$custom-dark: #000000;
JSON
{
  "hex": "#303bab",
  "rgb": {
    "r": 48,
    "g": 59,
    "b": 171
  },
  "hsl": {
    "h": 234.634,
    "s": 56.164,
    "l": 42.941
  },
  "oklch": {
    "l": 0.41979,
    "c": 0.17681,
    "h": 271.9
  },
  "luminance": 0.06697
}

Semantic roles & 50–950 ramp

primary
#303BAB
secondary
#C3BC74
accent
#D248DF
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #303BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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