#303B8F#303B8F

#303B8F is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.5% C 0.138 H 272.7°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#303B8F
RGBrgb(48, 59, 143)
HSLhsl(233, 50%, 37%)
HSVhsv(233, 66%, 56%)
CMYKcmyk(66.4%, 58.7%, 0%, 43.9%)
CIE-LABlab(28.74, 23.85, -48.01)
CIE-LCHlch(28.74, 53.61, 296.42°)
OKLaboklab(39.5% 0.0066 -0.1381)
OKLCHoklch(39.5% 0.138 272.7)
XYZxyz(7.7392, 5.7388, 26.6811)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303B8F #8F8430
analogous
#306A8F #303B8F #55308F
triadic
#303B8F #8F303B #3B8F30
tetradic
#303B8F #8F306A #8F8430 #308F55
square
#303B8F #8F306A #8F8430 #308F55
split-complementary
#303B8F #8F5530 #6A8F30
monochromatic
#111533 #212861 #303B8F #3F4EBD #6C77CE

Accessibility & contrast

On white

9.78
#303B8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#303B8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303B8F
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303B8F#FFFFFF#000000##FFFFFF
##303B8F1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#00408D
Tritanopia (blue-blind)
#004F5F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #303b8f;
/* rgb */ color: rgb(48, 59, 143);
/* oklch */ color: oklch(39.5% 0.138 272.7);
Tailwind
colors: {
  custom: {
    50: '#7470b0',
    500: '#303b8f',
    950: '#000000',
  },
}
SCSS
$custom: #303b8f;
$custom-light: #7470b0;
$custom-dark: #000000;
JSON
{
  "hex": "#303b8f",
  "rgb": {
    "r": 48,
    "g": 59,
    "b": 143
  },
  "hsl": {
    "h": 233.053,
    "s": 49.738,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39504,
    "c": 0.13828,
    "h": 272.7
  },
  "luminance": 0.05739
}

Semantic roles & 50–950 ramp

primary
#303B8F
secondary
#B5AC66
accent
#C94FD9
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090711
muted
#7B7A80

Preview Lab

Preview with #303B8F

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

Preview Lab → · Contrast checker → · Palette generator →

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