#303DAA#303DAA

#303DAA is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.2% C 0.173 H 271.5°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#303DAA
RGBrgb(48, 61, 170)
HSLhsl(234, 56%, 43%)
HSVhsv(234, 72%, 67%)
CMYKcmyk(71.8%, 64.1%, 0%, 33.3%)
CIE-LABlab(31.50, 32.39, -59.91)
CIE-LCHlch(31.50, 68.11, 298.40°)
OKLaboklab(42.24% 0.0044 -0.173)
OKLCHoklch(42.24% 0.173 271.5)
XYZxyz(10.1409, 6.8671, 38.8135)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303DAA #AA9D30
analogous
#307AAA #303DAA #6030AA
triadic
#303DAA #AA303D #3DAA30
tetradic
#303DAA #AA307A #AA9D30 #30AA60
square
#303DAA #AA307A #AA9D30 #30AA60
split-complementary
#303DAA #AA6030 #7AAA30
monochromatic
#151B4B #232C7A #303DAA #4B59CC #7B85DA

Accessibility & contrast

On white

8.85
#303DAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#303DAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303DAA
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303DAA#FFFFFF#000000##FFFFFF
##303DAA1.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AD
Deuteranopia (green-blind)
#0045A8
Tritanopia (blue-blind)
#00596E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #303daa;
/* rgb */ color: rgb(48, 61, 170);
/* oklch */ color: oklch(42.2% 0.173 271.5);
Tailwind
colors: {
  custom: {
    50: '#7a72c4',
    500: '#303daa',
    950: '#000000',
  },
}
SCSS
$custom: #303daa;
$custom-light: #7a72c4;
$custom-dark: #000000;
JSON
{
  "hex": "#303daa",
  "rgb": {
    "r": 48,
    "g": 61,
    "b": 170
  },
  "hsl": {
    "h": 233.607,
    "s": 55.963,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42244,
    "c": 0.1731,
    "h": 271.5
  },
  "luminance": 0.06868
}

Semantic roles & 50–950 ramp

primary
#303DAA
secondary
#C2BA74
accent
#CF49DF
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #303DAA

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

Preview Lab → · Contrast checker → · Palette generator →

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