#303AAB#303AAB

#303AAB is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.8% C 0.178 H 272.1°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#303AAB
RGBrgb(48, 58, 171)
HSLhsl(235, 56%, 43%)
HSVhsv(235, 72%, 67%)
CMYKcmyk(71.9%, 66.1%, 0%, 32.9%)
CIE-LABlab(30.86, 34.67, -61.55)
CIE-LCHlch(30.86, 70.65, 299.39°)
OKLaboklab(41.8% 0.0064 -0.1779)
OKLCHoklch(41.8% 0.178 272.1)
XYZxyz(10.0802, 6.5938, 39.2617)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303AAB #ABA130
analogous
#3077AB #303AAB #6330AB
triadic
#303AAB #AB303A #3AAB30
tetradic
#303AAB #AB3077 #ABA130 #30AB63
square
#303AAB #AB3077 #ABA130 #30AB63
split-complementary
#303AAB #AB6330 #77AB30
monochromatic
#151A4B #232A7B #303AAB #4C56CD #7B83DA

Accessibility & contrast

On white

9.06
#303AAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#303AAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303AAB
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303AAB#FFFFFF#000000##FFFFFF
##303AAB1.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #303aab;
/* rgb */ color: rgb(48, 58, 171);
/* oklch */ color: oklch(41.8% 0.178 272.1);
Tailwind
colors: {
  custom: {
    50: '#7a70c5',
    500: '#303aab',
    950: '#000000',
  },
}
SCSS
$custom: #303aab;
$custom-light: #7a70c5;
$custom-dark: #000000;
JSON
{
  "hex": "#303aab",
  "rgb": {
    "r": 48,
    "g": 58,
    "b": 171
  },
  "hsl": {
    "h": 235.122,
    "s": 56.164,
    "l": 42.941
  },
  "oklch": {
    "l": 0.41804,
    "c": 0.178,
    "h": 272.1
  },
  "luminance": 0.06595
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #303AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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