#303BA1#303BA1

#303BA1 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.1% C 0.163 H 272.2°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#303BA1
RGBrgb(48, 59, 161)
HSLhsl(234, 54%, 41%)
HSVhsv(234, 70%, 63%)
CMYKcmyk(70.2%, 63.4%, 0%, 36.9%)
CIE-LABlab(30.23, 30.43, -56.58)
CIE-LCHlch(30.23, 64.24, 298.28°)
OKLaboklab(41.07% 0.0063 -0.1633)
OKLCHoklch(41.07% 0.163 272.2)
XYZxyz(9.2137, 6.3286, 34.4473)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303BA1 #A19630
analogous
#3073A1 #303BA1 #5D30A1
triadic
#303BA1 #A1303B #3BA130
tetradic
#303BA1 #A13073 #A19630 #30A15D
square
#303BA1 #A13073 #A19630 #30A15D
split-complementary
#303BA1 #A15D30 #73A130
monochromatic
#141843 #222A72 #303BA1 #4653C8 #757FD6

Accessibility & contrast

On white

9.27
#303BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#303BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303BA1
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303BA1#FFFFFF#000000##FFFFFF
##303BA11.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA4
Deuteranopia (green-blind)
#00429F
Tritanopia (blue-blind)
#005568
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #303ba1;
/* rgb */ color: rgb(48, 59, 161);
/* oklch */ color: oklch(41.1% 0.163 272.2);
Tailwind
colors: {
  custom: {
    50: '#7871be',
    500: '#303ba1',
    950: '#000000',
  },
}
SCSS
$custom: #303ba1;
$custom-light: #7871be;
$custom-dark: #000000;
JSON
{
  "hex": "#303ba1",
  "rgb": {
    "r": 48,
    "g": 59,
    "b": 161
  },
  "hsl": {
    "h": 234.159,
    "s": 54.067,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41066,
    "c": 0.16341,
    "h": 272.2
  },
  "luminance": 0.0633
}

Semantic roles & 50–950 ramp

primary
#303BA1
secondary
#BEB66F
accent
#CF4ADD
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #303BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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