#303173#303173

#303173 is a dark, moderate blue. Relative luminance 0.041; OKLCH L 35.2% C 0.111 H 278.4°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#303173
RGBrgb(48, 49, 115)
HSLhsl(239, 41%, 32%)
HSVhsv(239, 58%, 45%)
CMYKcmyk(58.3%, 57.4%, 0%, 54.9%)
CIE-LABlab(23.88, 20.46, -38.34)
CIE-LCHlch(23.88, 43.46, 298.09°)
OKLaboklab(35.19% 0.0162 -0.1098)
OKLCHoklch(35.19% 0.111 278.4)
XYZxyz(5.4108, 4.0624, 16.7153)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303173 #737230
analogous
#305373 #303173 #513073
triadic
#303173 #733031 #317330
tetradic
#303173 #733053 #737230 #307351
square
#303173 #733053 #737230 #307351
split-complementary
#303173 #735130 #537330
monochromatic
#0C0C1D #1E1F48 #303173 #42439E #6162BD

Accessibility & contrast

On white

11.59
#303173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#303173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303173
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303173#FFFFFF#000000##FFFFFF
##3031731.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063C75
Deuteranopia (green-blind)
#003672
Tritanopia (blue-blind)
#0D404D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #303173;
/* rgb */ color: rgb(48, 49, 115);
/* oklch */ color: oklch(35.2% 0.111 278.4);
Tailwind
colors: {
  custom: {
    50: '#6f699c',
    500: '#303173',
    950: '#000000',
  },
}
SCSS
$custom: #303173;
$custom-light: #6f699c;
$custom-dark: #000000;
JSON
{
  "hex": "#303173",
  "rgb": {
    "r": 48,
    "g": 49,
    "b": 115
  },
  "hsl": {
    "h": 239.104,
    "s": 41.104,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35192,
    "c": 0.11096,
    "h": 278.4
  },
  "luminance": 0.04063
}

Semantic roles & 50–950 ramp

primary
#303173
secondary
#A4A35B
accent
#CF57D1
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #303173

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

Preview Lab → · Contrast checker → · Palette generator →

#303173 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva