#303BB3#303BB3

#303BB3 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.7% C 0.187 H 271.6°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#303BB3
RGBrgb(48, 59, 179)
HSLhsl(235, 58%, 45%)
HSVhsv(235, 73%, 70%)
CMYKcmyk(73.2%, 67%, 0%, 29.8%)
CIE-LABlab(31.83, 36.88, -64.74)
CIE-LCHlch(31.83, 74.51, 299.67°)
OKLaboklab(42.73% 0.0051 -0.1872)
OKLCHoklch(42.73% 0.187 271.6)
XYZxyz(10.9168, 7.0099, 43.4168)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303BB3 #B3A830
analogous
#307DB3 #303BB3 #6730B3
triadic
#303BB3 #B3303B #3BB330
tetradic
#303BB3 #B3307D #B3A830 #30B367
square
#303BB3 #B3307D #B3A830 #30B367
split-complementary
#303BB3 #B36730 #7DB330
monochromatic
#161B52 #232B83 #303BB3 #505BD0 #8088DD

Accessibility & contrast

On white

8.74
#303BB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#303BB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303BB3
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303BB3#FFFFFF#000000##FFFFFF
##303BB31.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B7
Deuteranopia (green-blind)
#0045B1
Tritanopia (blue-blind)
#005B72
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #303bb3;
/* rgb */ color: rgb(48, 59, 179);
/* oklch */ color: oklch(42.7% 0.187 271.6);
Tailwind
colors: {
  custom: {
    50: '#7c71cb',
    500: '#303bb3',
    950: '#000000',
  },
}
SCSS
$custom: #303bb3;
$custom-light: #7c71cb;
$custom-dark: #000000;
JSON
{
  "hex": "#303bb3",
  "rgb": {
    "r": 48,
    "g": 59,
    "b": 179
  },
  "hsl": {
    "h": 234.962,
    "s": 57.709,
    "l": 44.51
  },
  "oklch": {
    "l": 0.42731,
    "c": 0.18727,
    "h": 271.6
  },
  "luminance": 0.07011
}

Semantic roles & 50–950 ramp

primary
#303BB3
secondary
#C6C079
accent
#D447E1
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #303BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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