#303BA2#303BA2

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

Color values

HEX#303BA2
RGBrgb(48, 59, 162)
HSLhsl(234, 54%, 41%)
HSVhsv(234, 70%, 64%)
CMYKcmyk(70.4%, 63.6%, 0%, 36.5%)
CIE-LABlab(30.31, 30.80, -57.04)
CIE-LCHlch(30.31, 64.82, 298.36°)
OKLaboklab(41.16% 0.0063 -0.1646)
OKLCHoklch(41.16% 0.165 272.2)
XYZxyz(9.3023, 6.3640, 34.9136)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303BA2 #A29730
analogous
#3074A2 #303BA2 #5E30A2
triadic
#303BA2 #A2303B #3BA230
tetradic
#303BA2 #A23074 #A29730 #30A25E
square
#303BA2 #A23074 #A29730 #30A25E
split-complementary
#303BA2 #A25E30 #74A230
monochromatic
#141944 #222A73 #303BA2 #4753C8 #767FD6

Accessibility & contrast

On white

9.24
#303BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #303BA2
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303BA2#FFFFFF#000000##FFFFFF
##303BA21.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA5
Deuteranopia (green-blind)
#0042A0
Tritanopia (blue-blind)
#005569
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #303ba2;
/* rgb */ color: rgb(48, 59, 162);
/* oklch */ color: oklch(41.2% 0.165 272.2);
Tailwind
colors: {
  custom: {
    50: '#7871be',
    500: '#303ba2',
    950: '#000000',
  },
}
SCSS
$custom: #303ba2;
$custom-light: #7871be;
$custom-dark: #000000;
JSON
{
  "hex": "#303ba2",
  "rgb": {
    "r": 48,
    "g": 59,
    "b": 162
  },
  "hsl": {
    "h": 234.211,
    "s": 54.286,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41156,
    "c": 0.16477,
    "h": 272.2
  },
  "luminance": 0.06365
}

Semantic roles & 50–950 ramp

primary
#303BA2
secondary
#BEB76F
accent
#CF4ADE
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #303BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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