#303BAA#303BAA

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

Color values

HEX#303BAA
RGBrgb(48, 59, 170)
HSLhsl(235, 56%, 43%)
HSVhsv(235, 72%, 67%)
CMYKcmyk(71.8%, 65.3%, 0%, 33.3%)
CIE-LABlab(31.01, 33.68, -60.71)
CIE-LCHlch(31.01, 69.42, 299.02°)
OKLaboklab(41.89% 0.0058 -0.1754)
OKLCHoklch(41.89% 0.175 271.9)
XYZxyz(10.0361, 6.6576, 38.7785)
Luminance0.0666 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303BAA #AA9F30
analogous
#3078AA #303BAA #6230AA
triadic
#303BAA #AA303B #3BAA30
tetradic
#303BAA #AA3078 #AA9F30 #30AA62
square
#303BAA #AA3078 #AA9F30 #30AA62
split-complementary
#303BAA #AA6230 #78AA30
monochromatic
#151A4B #232A7A #303BAA #4B57CC #7B83DA

Accessibility & contrast

On white

9.01
#303BAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#303BAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303BAA
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303BAA#FFFFFF#000000##FFFFFF
##303BAA1.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAE
Deuteranopia (green-blind)
#0043A8
Tritanopia (blue-blind)
#00586D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #303baa;
/* rgb */ color: rgb(48, 59, 170);
/* oklch */ color: oklch(41.9% 0.175 271.9);
Tailwind
colors: {
  custom: {
    50: '#7a71c4',
    500: '#303baa',
    950: '#000000',
  },
}
SCSS
$custom: #303baa;
$custom-light: #7a71c4;
$custom-dark: #000000;
JSON
{
  "hex": "#303baa",
  "rgb": {
    "r": 48,
    "g": 59,
    "b": 170
  },
  "hsl": {
    "h": 234.59,
    "s": 55.963,
    "l": 42.745
  },
  "oklch": {
    "l": 0.41887,
    "c": 0.17549,
    "h": 271.9
  },
  "luminance": 0.06659
}

Semantic roles & 50–950 ramp

primary
#303BAA
secondary
#C2BB74
accent
#D249DF
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #303BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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