#303DAB#303DAB

#303DAB is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.3% C 0.174 H 271.4°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#303DAB
RGBrgb(48, 61, 171)
HSLhsl(234, 56%, 43%)
HSVhsv(234, 72%, 67%)
CMYKcmyk(71.9%, 64.3%, 0%, 32.9%)
CIE-LABlab(31.59, 32.76, -60.36)
CIE-LCHlch(31.59, 68.68, 298.49°)
OKLaboklab(42.34% 0.0044 -0.1744)
OKLCHoklch(42.34% 0.174 271.4)
XYZxyz(10.2359, 6.9051, 39.3136)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303DAB #AB9E30
analogous
#307AAB #303DAB #6130AB
triadic
#303DAB #AB303D #3DAB30
tetradic
#303DAB #AB307A #AB9E30 #30AB61
square
#303DAB #AB307A #AB9E30 #30AB61
split-complementary
#303DAB #AB6130 #7AAB30
monochromatic
#151B4B #232C7B #303DAB #4C59CD #7B85DA

Accessibility & contrast

On white

8.82
#303DAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#303DAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303DAB
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303DAB#FFFFFF#000000##FFFFFF
##303DAB1.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AF
Deuteranopia (green-blind)
#0045A9
Tritanopia (blue-blind)
#005A6E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #303dab;
/* rgb */ color: rgb(48, 61, 171);
/* oklch */ color: oklch(42.3% 0.174 271.4);
Tailwind
colors: {
  custom: {
    50: '#7a72c5',
    500: '#303dab',
    950: '#000000',
  },
}
SCSS
$custom: #303dab;
$custom-light: #7a72c5;
$custom-dark: #000000;
JSON
{
  "hex": "#303dab",
  "rgb": {
    "r": 48,
    "g": 61,
    "b": 171
  },
  "hsl": {
    "h": 233.659,
    "s": 56.164,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42336,
    "c": 0.17442,
    "h": 271.4
  },
  "luminance": 0.06906
}

Semantic roles & 50–950 ramp

primary
#303DAB
secondary
#C3BA74
accent
#CF48DF
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #303DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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