#303BAD#303BAD

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

Color values

HEX#303BAD
RGBrgb(48, 59, 173)
HSLhsl(235, 57%, 43%)
HSVhsv(235, 72%, 68%)
CMYKcmyk(72.3%, 65.9%, 0%, 32.2%)
CIE-LABlab(31.28, 34.75, -62.06)
CIE-LCHlch(31.28, 71.13, 299.25°)
OKLaboklab(42.17% 0.0056 -0.1794)
OKLCHoklch(42.17% 0.179 271.8)
XYZxyz(10.3232, 6.7724, 40.2902)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303BAD #ADA230
analogous
#3079AD #303BAD #6330AD
triadic
#303BAD #AD303B #3BAD30
tetradic
#303BAD #AD3079 #ADA230 #30AD63
square
#303BAD #AD3079 #ADA230 #30AD63
split-complementary
#303BAD #AD6330 #79AD30
monochromatic
#151A4D #232B7D #303BAD #4D58CE #7D85DB

Accessibility & contrast

On white

8.92
#303BAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #303BAD
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303BAD#FFFFFF#000000##FFFFFF
##303BAD1.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #303bad;
/* rgb */ color: rgb(48, 59, 173);
/* oklch */ color: oklch(42.2% 0.179 271.8);
Tailwind
colors: {
  custom: {
    50: '#7a71c6',
    500: '#303bad',
    950: '#000000',
  },
}
SCSS
$custom: #303bad;
$custom-light: #7a71c6;
$custom-dark: #000000;
JSON
{
  "hex": "#303bad",
  "rgb": {
    "r": 48,
    "g": 59,
    "b": 173
  },
  "hsl": {
    "h": 234.72,
    "s": 56.561,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42166,
    "c": 0.17945,
    "h": 271.8
  },
  "luminance": 0.06773
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #303BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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