#303B7D#303B7D

#303B7D is a dark, moderate blue. Relative luminance 0.052; OKLCH L 38.1% C 0.112 H 272.9°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#303B7D
RGBrgb(48, 59, 125)
HSLhsl(231, 45%, 34%)
HSVhsv(231, 62%, 49%)
CMYKcmyk(61.6%, 52.8%, 0%, 51%)
CIE-LABlab(27.40, 17.23, -38.99)
CIE-LCHlch(27.40, 42.63, 293.84°)
OKLaboklab(38.07% 0.0056 -0.1116)
OKLCHoklch(38.07% 0.112 272.9)
XYZxyz(6.4833, 5.2365, 20.0671)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303B7D #7D7230
analogous
#30627D #303B7D #4C307D
triadic
#303B7D #7D303B #3B7D30
tetradic
#303B7D #7D3062 #7D7230 #307D4C
square
#303B7D #7D3062 #7D7230 #307D4C
split-complementary
#303B7D #7D4C30 #627D30
monochromatic
#0E1125 #1F2651 #303B7D #4150A9 #6472C3

Accessibility & contrast

On white

10.26
#303B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#303B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303B7D
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303B7D#FFFFFF#000000##FFFFFF
##303B7D1.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17447F
Deuteranopia (green-blind)
#063D7C
Tritanopia (blue-blind)
#004A56
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #303b7d;
/* rgb */ color: rgb(48, 59, 125);
/* oklch */ color: oklch(38.1% 0.112 272.9);
Tailwind
colors: {
  custom: {
    50: '#7070a3',
    500: '#303b7d',
    950: '#000000',
  },
}
SCSS
$custom: #303b7d;
$custom-light: #7070a3;
$custom-dark: #000000;
JSON
{
  "hex": "#303b7d",
  "rgb": {
    "r": 48,
    "g": 59,
    "b": 125
  },
  "hsl": {
    "h": 231.429,
    "s": 44.509,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38068,
    "c": 0.11173,
    "h": 272.9
  },
  "luminance": 0.05237
}

Semantic roles & 50–950 ramp

primary
#303B7D
secondary
#ABA05E
accent
#C254D4
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #303B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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