#303A9F#303A9F

#303A9F is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.7% C 0.162 H 272.5°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#303A9F
RGBrgb(48, 58, 159)
HSLhsl(235, 54%, 41%)
HSVhsv(235, 70%, 62%)
CMYKcmyk(69.8%, 63.5%, 0%, 37.6%)
CIE-LABlab(29.80, 30.36, -56.06)
CIE-LCHlch(29.80, 63.75, 298.44°)
OKLaboklab(40.7% 0.0072 -0.1618)
OKLCHoklch(40.7% 0.162 272.5)
XYZxyz(8.9879, 6.1568, 33.5089)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303A9F #9F9530
analogous
#30719F #303A9F #5E309F
triadic
#303A9F #9F303A #3A9F30
tetradic
#303A9F #9F3071 #9F9530 #309F5E
square
#303A9F #9F3071 #9F9530 #309F5E
split-complementary
#303A9F #9F5E30 #719F30
monochromatic
#141841 #222970 #303A9F #4551C7 #747DD5

Accessibility & contrast

On white

9.41
#303A9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#303A9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303A9F
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303A9F#FFFFFF#000000##FFFFFF
##303A9F1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA2
Deuteranopia (green-blind)
#00419D
Tritanopia (blue-blind)
#005467
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #303a9f;
/* rgb */ color: rgb(48, 58, 159);
/* oklch */ color: oklch(40.7% 0.162 272.5);
Tailwind
colors: {
  custom: {
    50: '#7770bc',
    500: '#303a9f',
    950: '#000000',
  },
}
SCSS
$custom: #303a9f;
$custom-light: #7770bc;
$custom-dark: #000000;
JSON
{
  "hex": "#303a9f",
  "rgb": {
    "r": 48,
    "g": 58,
    "b": 159
  },
  "hsl": {
    "h": 234.595,
    "s": 53.623,
    "l": 40.588
  },
  "oklch": {
    "l": 0.40702,
    "c": 0.16193,
    "h": 272.5
  },
  "luminance": 0.06158
}

Semantic roles & 50–950 ramp

primary
#303A9F
secondary
#BDB66E
accent
#D04BDD
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #303A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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