#303FB2#303FB2

#303FB2 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.3% C 0.181 H 270.8°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#303FB2
RGBrgb(48, 63, 178)
HSLhsl(233, 58%, 44%)
HSVhsv(233, 73%, 70%)
CMYKcmyk(73%, 64.6%, 0%, 30.2%)
CIE-LABlab(32.69, 34.00, -62.73)
CIE-LCHlch(32.69, 71.35, 298.45°)
OKLaboklab(43.33% 0.0026 -0.1813)
OKLCHoklch(43.33% 0.181 270.8)
XYZxyz(11.0296, 7.3966, 42.9573)
Luminance0.0740 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303FB2 #B2A330
analogous
#3080B2 #303FB2 #6230B2
triadic
#303FB2 #B2303F #3FB230
tetradic
#303FB2 #B23080 #B2A330 #30B262
square
#303FB2 #B23080 #B2A330 #30B262
split-complementary
#303FB2 #B26230 #80B230
monochromatic
#161D52 #232E82 #303FB2 #505ED0 #808ADD

Accessibility & contrast

On white

8.47
#303FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#303FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303FB2
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303FB2#FFFFFF#000000##FFFFFF
##303FB21.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#0047B0
Tritanopia (blue-blind)
#005D72
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #303fb2;
/* rgb */ color: rgb(48, 63, 178);
/* oklch */ color: oklch(43.3% 0.181 270.8);
Tailwind
colors: {
  custom: {
    50: '#7b74ca',
    500: '#303fb2',
    950: '#000000',
  },
}
SCSS
$custom: #303fb2;
$custom-light: #7b74ca;
$custom-dark: #000000;
JSON
{
  "hex": "#303fb2",
  "rgb": {
    "r": 48,
    "g": 63,
    "b": 178
  },
  "hsl": {
    "h": 233.077,
    "s": 57.522,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43334,
    "c": 0.18132,
    "h": 270.8
  },
  "luminance": 0.07398
}

Semantic roles & 50–950 ramp

primary
#303FB2
secondary
#C6BD78
accent
#CF47E1
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #303FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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