#303EB2#303EB2

#303EB2 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.2% C 0.182 H 271.0°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#303EB2
RGBrgb(48, 62, 178)
HSLhsl(234, 58%, 44%)
HSVhsv(234, 73%, 70%)
CMYKcmyk(73%, 65.2%, 0%, 30.2%)
CIE-LABlab(32.45, 34.63, -63.13)
CIE-LCHlch(32.45, 72.00, 298.75°)
OKLaboklab(43.16% 0.0033 -0.1825)
OKLCHoklch(43.16% 0.182 271)
XYZxyz(10.9747, 7.2869, 42.9390)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303EB2 #B2A430
analogous
#307FB2 #303EB2 #6330B2
triadic
#303EB2 #B2303E #3EB230
tetradic
#303EB2 #B2307F #B2A430 #30B263
square
#303EB2 #B2307F #B2A430 #30B263
split-complementary
#303EB2 #B26330 #7FB230
monochromatic
#161C52 #232D82 #303EB2 #505DD0 #808ADD

Accessibility & contrast

On white

8.54
#303EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#303EB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303EB2
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303EB2#FFFFFF#000000##FFFFFF
##303EB21.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B6
Deuteranopia (green-blind)
#0046B0
Tritanopia (blue-blind)
#005C72
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #303eb2;
/* rgb */ color: rgb(48, 62, 178);
/* oklch */ color: oklch(43.2% 0.182 271.0);
Tailwind
colors: {
  custom: {
    50: '#7b73ca',
    500: '#303eb2',
    950: '#000000',
  },
}
SCSS
$custom: #303eb2;
$custom-light: #7b73ca;
$custom-dark: #000000;
JSON
{
  "hex": "#303eb2",
  "rgb": {
    "r": 48,
    "g": 62,
    "b": 178
  },
  "hsl": {
    "h": 233.538,
    "s": 57.522,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43157,
    "c": 0.18249,
    "h": 271
  },
  "luminance": 0.07288
}

Semantic roles & 50–950 ramp

primary
#303EB2
secondary
#C6BD78
accent
#D047E1
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #303EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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