#303D9C#303D9C

#303D9C is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.0% C 0.154 H 271.8°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#303D9C
RGBrgb(48, 61, 156)
HSLhsl(233, 53%, 40%)
HSVhsv(233, 69%, 61%)
CMYKcmyk(69.2%, 60.9%, 0%, 38.8%)
CIE-LABlab(30.32, 27.30, -53.40)
CIE-LCHlch(30.32, 59.97, 297.07°)
OKLaboklab(41% 0.0049 -0.1539)
OKLCHoklch(41% 0.154 271.8)
XYZxyz(8.8864, 6.3653, 32.2064)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303D9C #9C8F30
analogous
#30739C #303D9C #59309C
triadic
#303D9C #9C303D #3D9C30
tetradic
#303D9C #9C3073 #9C8F30 #309C59
square
#303D9C #9C3073 #9C8F30 #309C59
split-complementary
#303D9C #9C5930 #739C30
monochromatic
#13183E #222B6D #303D9C #4453C5 #737ED4

Accessibility & contrast

On white

9.24
#303D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#303D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303D9C
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303D9C#FFFFFF#000000##FFFFFF
##303D9C1.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9F
Deuteranopia (green-blind)
#00439A
Tritanopia (blue-blind)
#005566
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #303d9c;
/* rgb */ color: rgb(48, 61, 156);
/* oklch */ color: oklch(41.0% 0.154 271.8);
Tailwind
colors: {
  custom: {
    50: '#7672ba',
    500: '#303d9c',
    950: '#000000',
  },
}
SCSS
$custom: #303d9c;
$custom-light: #7672ba;
$custom-dark: #000000;
JSON
{
  "hex": "#303d9c",
  "rgb": {
    "r": 48,
    "g": 61,
    "b": 156
  },
  "hsl": {
    "h": 232.778,
    "s": 52.941,
    "l": 40
  },
  "oklch": {
    "l": 0.41001,
    "c": 0.15403,
    "h": 271.8
  },
  "luminance": 0.06366
}

Semantic roles & 50–950 ramp

primary
#303D9C
secondary
#BCB26C
accent
#CB4BDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #303D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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