#303BB2#303BB2

#303BB2 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.6% C 0.186 H 271.6°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#303BB2
RGBrgb(48, 59, 178)
HSLhsl(235, 58%, 44%)
HSVhsv(235, 73%, 70%)
CMYKcmyk(73%, 66.9%, 0%, 30.2%)
CIE-LABlab(31.74, 36.53, -64.30)
CIE-LCHlch(31.74, 73.95, 299.60°)
OKLaboklab(42.64% 0.0052 -0.1859)
OKLCHoklch(42.64% 0.186 271.6)
XYZxyz(10.8160, 6.9696, 42.8861)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303BB2 #B2A730
analogous
#307CB2 #303BB2 #6630B2
triadic
#303BB2 #B2303B #3BB230
tetradic
#303BB2 #B2307C #B2A730 #30B266
square
#303BB2 #B2307C #B2A730 #30B266
split-complementary
#303BB2 #B26630 #7CB230
monochromatic
#161B52 #232B82 #303BB2 #505AD0 #8088DD

Accessibility & contrast

On white

8.77
#303BB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#303BB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303BB2
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303BB2#FFFFFF#000000##FFFFFF
##303BB21.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#0045B0
Tritanopia (blue-blind)
#005B71
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #303bb2;
/* rgb */ color: rgb(48, 59, 178);
/* oklch */ color: oklch(42.6% 0.186 271.6);
Tailwind
colors: {
  custom: {
    50: '#7c71ca',
    500: '#303bb2',
    950: '#000000',
  },
}
SCSS
$custom: #303bb2;
$custom-light: #7c71ca;
$custom-dark: #000000;
JSON
{
  "hex": "#303bb2",
  "rgb": {
    "r": 48,
    "g": 59,
    "b": 178
  },
  "hsl": {
    "h": 234.923,
    "s": 57.522,
    "l": 44.314
  },
  "oklch": {
    "l": 0.42636,
    "c": 0.18598,
    "h": 271.6
  },
  "luminance": 0.06971
}

Semantic roles & 50–950 ramp

primary
#303BB2
secondary
#C6BF78
accent
#D447E1
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #303BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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