#303AA6#303AA6

#303AA6 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.3% C 0.171 H 272.3°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#303AA6
RGBrgb(48, 58, 166)
HSLhsl(235, 55%, 42%)
HSVhsv(235, 71%, 65%)
CMYKcmyk(71.1%, 65.1%, 0%, 34.9%)
CIE-LABlab(30.42, 32.88, -59.28)
CIE-LCHlch(30.42, 67.79, 299.02°)
OKLaboklab(41.34% 0.0068 -0.1712)
OKLCHoklch(41.34% 0.171 272.3)
XYZxyz(9.6126, 6.4067, 36.7990)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303AA6 #A69C30
analogous
#3075A6 #303AA6 #6130A6
triadic
#303AA6 #A6303A #3AA630
tetradic
#303AA6 #A63075 #A69C30 #30A661
square
#303AA6 #A63075 #A69C30 #30A661
split-complementary
#303AA6 #A66130 #75A630
monochromatic
#151947 #222977 #303AA6 #4954CA #7880D8

Accessibility & contrast

On white

9.20
#303AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #303AA6
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303AA6#FFFFFF#000000##FFFFFF
##303AA61.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA9
Deuteranopia (green-blind)
#0042A4
Tritanopia (blue-blind)
#00566A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #303aa6;
/* rgb */ color: rgb(48, 58, 166);
/* oklch */ color: oklch(41.3% 0.171 272.3);
Tailwind
colors: {
  custom: {
    50: '#7970c1',
    500: '#303aa6',
    950: '#000000',
  },
}
SCSS
$custom: #303aa6;
$custom-light: #7970c1;
$custom-dark: #000000;
JSON
{
  "hex": "#303aa6",
  "rgb": {
    "r": 48,
    "g": 58,
    "b": 166
  },
  "hsl": {
    "h": 234.915,
    "s": 55.14,
    "l": 41.961
  },
  "oklch": {
    "l": 0.4134,
    "c": 0.17136,
    "h": 272.3
  },
  "luminance": 0.06408
}

Semantic roles & 50–950 ramp

primary
#303AA6
secondary
#C0BA71
accent
#D249DE
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #303AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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