#303BB6#303BB6

#303BB6 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 43.0% C 0.191 H 271.4°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#303BB6
RGBrgb(48, 59, 182)
HSLhsl(235, 58%, 45%)
HSVhsv(235, 74%, 71%)
CMYKcmyk(73.6%, 67.6%, 0%, 28.6%)
CIE-LABlab(32.11, 37.95, -66.07)
CIE-LCHlch(32.11, 76.19, 299.87°)
OKLaboklab(43.02% 0.0048 -0.1911)
OKLCHoklch(43.02% 0.191 271.4)
XYZxyz(11.2235, 7.1325, 45.0321)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303BB6 #B6AB30
analogous
#307EB6 #303BB6 #6830B6
triadic
#303BB6 #B6303B #3BB630
tetradic
#303BB6 #B6307E #B6AB30 #30B668
square
#303BB6 #B6307E #B6AB30 #30B668
split-complementary
#303BB6 #B66830 #7EB630
monochromatic
#161C55 #232B86 #303BB6 #525CD1 #828ADE

Accessibility & contrast

On white

8.65
#303BB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#303BB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303BB6
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303BB6#FFFFFF#000000##FFFFFF
##303BB61.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BA
Deuteranopia (green-blind)
#0045B4
Tritanopia (blue-blind)
#005C73
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #303bb6;
/* rgb */ color: rgb(48, 59, 182);
/* oklch */ color: oklch(43.0% 0.191 271.4);
Tailwind
colors: {
  custom: {
    50: '#7c71cd',
    500: '#303bb6',
    950: '#000000',
  },
}
SCSS
$custom: #303bb6;
$custom-light: #7c71cd;
$custom-dark: #000000;
JSON
{
  "hex": "#303bb6",
  "rgb": {
    "r": 48,
    "g": 59,
    "b": 182
  },
  "hsl": {
    "h": 235.075,
    "s": 58.261,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43017,
    "c": 0.19114,
    "h": 271.4
  },
  "luminance": 0.07134
}

Semantic roles & 50–950 ramp

primary
#303BB6
secondary
#C7C17B
accent
#D546E1
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #303BB6

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

Preview Lab → · Contrast checker → · Palette generator →

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