#303DA2#303DA2

#303DA2 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.5% C 0.162 H 271.7°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#303DA2
RGBrgb(48, 61, 162)
HSLhsl(233, 54%, 41%)
HSVhsv(233, 70%, 64%)
CMYKcmyk(70.4%, 62.3%, 0%, 36.5%)
CIE-LABlab(30.82, 29.49, -56.22)
CIE-LCHlch(30.82, 63.48, 297.68°)
OKLaboklab(41.53% 0.0047 -0.1622)
OKLCHoklch(41.53% 0.162 271.7)
XYZxyz(9.4071, 6.5736, 34.9485)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303DA2 #A29530
analogous
#3076A2 #303DA2 #5C30A2
triadic
#303DA2 #A2303D #3DA230
tetradic
#303DA2 #A23076 #A29530 #30A25C
square
#303DA2 #A23076 #A29530 #30A25C
split-complementary
#303DA2 #A25C30 #76A230
monochromatic
#141944 #222B73 #303DA2 #4756C8 #7681D6

Accessibility & contrast

On white

9.07
#303DA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #303DA2
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303DA2#FFFFFF#000000##FFFFFF
##303DA21.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA5
Deuteranopia (green-blind)
#0043A0
Tritanopia (blue-blind)
#005769
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #303da2;
/* rgb */ color: rgb(48, 61, 162);
/* oklch */ color: oklch(41.5% 0.162 271.7);
Tailwind
colors: {
  custom: {
    50: '#7872be',
    500: '#303da2',
    950: '#000000',
  },
}
SCSS
$custom: #303da2;
$custom-light: #7872be;
$custom-dark: #000000;
JSON
{
  "hex": "#303da2",
  "rgb": {
    "r": 48,
    "g": 61,
    "b": 162
  },
  "hsl": {
    "h": 233.158,
    "s": 54.286,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41526,
    "c": 0.16229,
    "h": 271.7
  },
  "luminance": 0.06575
}

Semantic roles & 50–950 ramp

primary
#303DA2
secondary
#BEB56F
accent
#CD4ADE
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #303DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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