#303C8E#303C8E

#303C8E is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.6% C 0.136 H 272.4°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#303C8E
RGBrgb(48, 60, 142)
HSLhsl(232, 49%, 37%)
HSVhsv(232, 66%, 56%)
CMYKcmyk(66.2%, 57.7%, 0%, 44.3%)
CIE-LABlab(28.93, 22.81, -47.08)
CIE-LCHlch(28.93, 52.32, 295.85°)
OKLaboklab(39.62% 0.0056 -0.1354)
OKLCHoklch(39.62% 0.136 272.4)
XYZxyz(7.7156, 5.8124, 26.3012)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303C8E #8E8230
analogous
#306B8E #303C8E #53308E
triadic
#303C8E #8E303C #3C8E30
tetradic
#303C8E #8E306B #8E8230 #308E53
square
#303C8E #8E306B #8E8230 #308E53
split-complementary
#303C8E #8E5330 #6B8E30
monochromatic
#111533 #212960 #303C8E #3F4FBC #6B78CD

Accessibility & contrast

On white

9.71
#303C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#303C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303C8E
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303C8E#FFFFFF#000000##FFFFFF
##303C8E1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#00408C
Tritanopia (blue-blind)
#00505F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #303c8e;
/* rgb */ color: rgb(48, 60, 142);
/* oklch */ color: oklch(39.6% 0.136 272.4);
Tailwind
colors: {
  custom: {
    50: '#7371b0',
    500: '#303c8e',
    950: '#000000',
  },
}
SCSS
$custom: #303c8e;
$custom-light: #7371b0;
$custom-dark: #000000;
JSON
{
  "hex": "#303c8e",
  "rgb": {
    "r": 48,
    "g": 60,
    "b": 142
  },
  "hsl": {
    "h": 232.34,
    "s": 49.474,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39622,
    "c": 0.13551,
    "h": 272.4
  },
  "luminance": 0.05813
}

Semantic roles & 50–950 ramp

primary
#303C8E
secondary
#B4AA65
accent
#C74FD9
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #303C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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