#303BAF#303BAF

#303BAF is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.4% C 0.182 H 271.7°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#303BAF
RGBrgb(48, 59, 175)
HSLhsl(235, 57%, 44%)
HSVhsv(235, 73%, 69%)
CMYKcmyk(72.6%, 66.3%, 0%, 31.4%)
CIE-LABlab(31.46, 35.47, -62.96)
CIE-LCHlch(31.46, 72.26, 299.39°)
OKLaboklab(42.35% 0.0054 -0.182)
OKLCHoklch(42.35% 0.182 271.7)
XYZxyz(10.5181, 6.8504, 41.3171)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303BAF #AFA430
analogous
#307AAF #303BAF #6430AF
triadic
#303BAF #AF303B #3BAF30
tetradic
#303BAF #AF307A #AFA430 #30AF64
square
#303BAF #AF307A #AFA430 #30AF64
split-complementary
#303BAF #AF6430 #7AAF30
monochromatic
#161B4F #232B7F #303BAF #4E59CE #7E86DC

Accessibility & contrast

On white

8.86
#303BAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#303BAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303BAF
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303BAF#FFFFFF#000000##FFFFFF
##303BAF1.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B3
Deuteranopia (green-blind)
#0044AD
Tritanopia (blue-blind)
#005A70
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #303baf;
/* rgb */ color: rgb(48, 59, 175);
/* oklch */ color: oklch(42.4% 0.182 271.7);
Tailwind
colors: {
  custom: {
    50: '#7b71c8',
    500: '#303baf',
    950: '#000000',
  },
}
SCSS
$custom: #303baf;
$custom-light: #7b71c8;
$custom-dark: #000000;
JSON
{
  "hex": "#303baf",
  "rgb": {
    "r": 48,
    "g": 59,
    "b": 175
  },
  "hsl": {
    "h": 234.803,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42353,
    "c": 0.18207,
    "h": 271.7
  },
  "luminance": 0.06851
}

Semantic roles & 50–950 ramp

primary
#303BAF
secondary
#C4BE76
accent
#D348E0
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #303BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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