#303BA7#303BA7

#303BA7 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.6% C 0.171 H 272.0°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#303BA7
RGBrgb(48, 59, 167)
HSLhsl(234, 55%, 42%)
HSVhsv(234, 71%, 65%)
CMYKcmyk(71.3%, 64.7%, 0%, 34.5%)
CIE-LABlab(30.75, 32.60, -59.34)
CIE-LCHlch(30.75, 67.71, 298.78°)
OKLaboklab(41.61% 0.006 -0.1714)
OKLCHoklch(41.61% 0.171 272)
XYZxyz(9.7556, 6.5454, 37.3010)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303BA7 #A79C30
analogous
#3076A7 #303BA7 #6130A7
triadic
#303BA7 #A7303B #3BA730
tetradic
#303BA7 #A73076 #A79C30 #30A761
square
#303BA7 #A73076 #A79C30 #30A761
split-complementary
#303BA7 #A76130 #76A730
monochromatic
#151948 #222A77 #303BA7 #4955CB #7982D8

Accessibility & contrast

On white

9.09
#303BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#303BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303BA7
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303BA7#FFFFFF#000000##FFFFFF
##303BA71.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAA
Deuteranopia (green-blind)
#0043A5
Tritanopia (blue-blind)
#00576B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #303ba7;
/* rgb */ color: rgb(48, 59, 167);
/* oklch */ color: oklch(41.6% 0.171 272.0);
Tailwind
colors: {
  custom: {
    50: '#7971c2',
    500: '#303ba7',
    950: '#000000',
  },
}
SCSS
$custom: #303ba7;
$custom-light: #7971c2;
$custom-dark: #000000;
JSON
{
  "hex": "#303ba7",
  "rgb": {
    "r": 48,
    "g": 59,
    "b": 167
  },
  "hsl": {
    "h": 234.454,
    "s": 55.349,
    "l": 42.157
  },
  "oklch": {
    "l": 0.4161,
    "c": 0.17149,
    "h": 272
  },
  "luminance": 0.06546
}

Semantic roles & 50–950 ramp

primary
#303BA7
secondary
#C1B972
accent
#D149DF
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #303BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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