#303B9E#303B9E

#303B9E is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.8% C 0.159 H 272.3°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#303B9E
RGBrgb(48, 59, 158)
HSLhsl(234, 53%, 40%)
HSVhsv(234, 70%, 62%)
CMYKcmyk(69.6%, 62.7%, 0%, 38%)
CIE-LABlab(29.97, 29.34, -55.18)
CIE-LCHlch(29.97, 62.50, 298.00°)
OKLaboklab(40.8% 0.0064 -0.1592)
OKLCHoklch(40.8% 0.159 272.3)
XYZxyz(8.9524, 6.2241, 33.0707)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303B9E #9E9330
analogous
#30729E #303B9E #5C309E
triadic
#303B9E #9E303B #3B9E30
tetradic
#303B9E #9E3072 #9E9330 #309E5C
square
#303B9E #9E3072 #9E9330 #309E5C
split-complementary
#303B9E #9E5C30 #729E30
monochromatic
#131840 #22296F #303B9E #4552C6 #747DD5

Accessibility & contrast

On white

9.35
#303B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#303B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303B9E
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303B9E#FFFFFF#000000##FFFFFF
##303B9E1.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA1
Deuteranopia (green-blind)
#00429C
Tritanopia (blue-blind)
#005467
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #303b9e;
/* rgb */ color: rgb(48, 59, 158);
/* oklch */ color: oklch(40.8% 0.159 272.3);
Tailwind
colors: {
  custom: {
    50: '#7771bb',
    500: '#303b9e',
    950: '#000000',
  },
}
SCSS
$custom: #303b9e;
$custom-light: #7771bb;
$custom-dark: #000000;
JSON
{
  "hex": "#303b9e",
  "rgb": {
    "r": 48,
    "g": 59,
    "b": 158
  },
  "hsl": {
    "h": 234,
    "s": 53.398,
    "l": 40.392
  },
  "oklch": {
    "l": 0.40798,
    "c": 0.15931,
    "h": 272.3
  },
  "luminance": 0.06225
}

Semantic roles & 50–950 ramp

primary
#303B9E
secondary
#BDB56D
accent
#CE4BDD
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #303B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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