#303396#303396

#303396 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.6% C 0.158 H 274.8°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#303396
RGBrgb(48, 51, 150)
HSLhsl(238, 52%, 39%)
HSVhsv(238, 68%, 59%)
CMYKcmyk(68%, 66%, 0%, 41.2%)
CIE-LABlab(27.29, 31.67, -54.68)
CIE-LCHlch(27.29, 63.19, 300.08°)
OKLaboklab(38.62% 0.0132 -0.1578)
OKLCHoklch(38.62% 0.158 274.8)
XYZxyz(7.9060, 5.1973, 29.4348)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303396 #969330
analogous
#306696 #303396 #603096
triadic
#303396 #963033 #339630
tetradic
#303396 #963066 #969330 #309660
square
#303396 #963066 #969330 #309660
split-complementary
#303396 #966030 #669630
monochromatic
#121339 #212368 #303396 #4145C2 #6F72D1

Accessibility & contrast

On white

10.30
#303396 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#303396 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303396
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303396#FFFFFF#000000##FFFFFF
##3033961.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004599
Deuteranopia (green-blind)
#003C94
Tritanopia (blue-blind)
#004D60
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #303396;
/* rgb */ color: rgb(48, 51, 150);
/* oklch */ color: oklch(38.6% 0.158 274.8);
Tailwind
colors: {
  custom: {
    50: '#766bb6',
    500: '#303396',
    950: '#000000',
  },
}
SCSS
$custom: #303396;
$custom-light: #766bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#303396",
  "rgb": {
    "r": 48,
    "g": 51,
    "b": 150
  },
  "hsl": {
    "h": 238.235,
    "s": 51.515,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38615,
    "c": 0.15833,
    "h": 274.8
  },
  "luminance": 0.05198
}

Semantic roles & 50–950 ramp

primary
#303396
secondary
#B9B669
accent
#D74DDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #303396

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

Preview Lab → · Contrast checker → · Palette generator →

#303396 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva