#303BA3#303BA3

#303BA3 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.2% C 0.166 H 272.1°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#303BA3
RGBrgb(48, 59, 163)
HSLhsl(234, 55%, 41%)
HSVhsv(234, 71%, 64%)
CMYKcmyk(70.6%, 63.8%, 0%, 36.1%)
CIE-LABlab(30.40, 31.16, -57.50)
CIE-LCHlch(30.40, 65.40, 298.45°)
OKLaboklab(41.25% 0.0062 -0.166)
OKLCHoklch(41.25% 0.166 272.1)
XYZxyz(9.3915, 6.3997, 35.3836)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303BA3 #A39830
analogous
#3075A3 #303BA3 #5F30A3
triadic
#303BA3 #A3303B #3BA330
tetradic
#303BA3 #A33075 #A39830 #30A35F
square
#303BA3 #A33075 #A39830 #30A35F
split-complementary
#303BA3 #A35F30 #75A330
monochromatic
#141944 #222A74 #303BA3 #4754C9 #7780D7

Accessibility & contrast

On white

9.21
#303BA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#303BA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303BA3
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303BA3#FFFFFF#000000##FFFFFF
##303BA31.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA6
Deuteranopia (green-blind)
#0042A1
Tritanopia (blue-blind)
#005669
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #303ba3;
/* rgb */ color: rgb(48, 59, 163);
/* oklch */ color: oklch(41.2% 0.166 272.1);
Tailwind
colors: {
  custom: {
    50: '#7871bf',
    500: '#303ba3',
    950: '#000000',
  },
}
SCSS
$custom: #303ba3;
$custom-light: #7871bf;
$custom-dark: #000000;
JSON
{
  "hex": "#303ba3",
  "rgb": {
    "r": 48,
    "g": 59,
    "b": 163
  },
  "hsl": {
    "h": 234.261,
    "s": 54.502,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41246,
    "c": 0.16612,
    "h": 272.1
  },
  "luminance": 0.06401
}

Semantic roles & 50–950 ramp

primary
#303BA3
secondary
#BFB770
accent
#D04ADE
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #303BA3

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

Preview Lab → · Contrast checker → · Palette generator →

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