#303F8A#303F8A

#303F8A is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.9% C 0.126 H 271.1°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#303F8A
RGBrgb(48, 63, 138)
HSLhsl(230, 48%, 36%)
HSVhsv(230, 65%, 54%)
CMYKcmyk(65.2%, 54.3%, 0%, 45.9%)
CIE-LABlab(29.46, 19.30, -43.77)
CIE-LCHlch(29.46, 47.84, 293.80°)
OKLaboklab(39.92% 0.0025 -0.1256)
OKLCHoklch(39.92% 0.126 271.1)
XYZxyz(7.5823, 6.0177, 24.8018)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303F8A #8A7B30
analogous
#306C8A #303F8A #4E308A
triadic
#303F8A #8A303F #3F8A30
tetradic
#303F8A #8A306C #8A7B30 #308A4E
square
#303F8A #8A306C #8A7B30 #308A4E
split-complementary
#303F8A #8A4E30 #6C8A30
monochromatic
#10162F #202A5D #303F8A #4054B7 #697ACB

Accessibility & contrast

On white

9.53
#303F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#303F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303F8A
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303F8A#FFFFFF#000000##FFFFFF
##303F8A1.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4A8D
Deuteranopia (green-blind)
#004288
Tritanopia (blue-blind)
#00515E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #303f8a;
/* rgb */ color: rgb(48, 63, 138);
/* oklch */ color: oklch(39.9% 0.126 271.1);
Tailwind
colors: {
  custom: {
    50: '#7273ad',
    500: '#303f8a',
    950: '#000000',
  },
}
SCSS
$custom: #303f8a;
$custom-light: #7273ad;
$custom-dark: #000000;
JSON
{
  "hex": "#303f8a",
  "rgb": {
    "r": 48,
    "g": 63,
    "b": 138
  },
  "hsl": {
    "h": 230,
    "s": 48.387,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39919,
    "c": 0.12562,
    "h": 271.1
  },
  "luminance": 0.06018
}

Semantic roles & 50–950 ramp

primary
#303F8A
secondary
#B2A564
accent
#C150D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #303F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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