#303371#303371

#303371 is a dark, moderate blue. Relative luminance 0.042; OKLCH L 35.4% C 0.105 H 277.5°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#303371
RGBrgb(48, 51, 113)
HSLhsl(237, 40%, 32%)
HSVhsv(237, 58%, 44%)
CMYKcmyk(57.5%, 54.9%, 0%, 55.7%)
CIE-LABlab(24.28, 18.37, -36.40)
CIE-LCHlch(24.28, 40.78, 296.78°)
OKLaboklab(35.45% 0.0137 -0.1041)
OKLCHoklch(35.45% 0.105 277.5)
XYZxyz(5.3824, 4.1879, 16.1443)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303371 #716E30
analogous
#305471 #303371 #4E3071
triadic
#303371 #713033 #337130
tetradic
#303371 #713054 #716E30 #30714E
square
#303371 #713054 #716E30 #30714E
split-complementary
#303371 #714E30 #547130
monochromatic
#0C0C1B #1E2046 #303371 #42469C #6064BB

Accessibility & contrast

On white

11.43
#303371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#303371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303371
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303371#FFFFFF#000000##FFFFFF
##3033711.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113C73
Deuteranopia (green-blind)
#063770
Tritanopia (blue-blind)
#10414C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #303371;
/* rgb */ color: rgb(48, 51, 113);
/* oklch */ color: oklch(35.4% 0.105 277.5);
Tailwind
colors: {
  custom: {
    50: '#6e6a9a',
    500: '#303371',
    950: '#000000',
  },
}
SCSS
$custom: #303371;
$custom-light: #6e6a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#303371",
  "rgb": {
    "r": 48,
    "g": 51,
    "b": 113
  },
  "hsl": {
    "h": 237.231,
    "s": 40.373,
    "l": 31.569
  },
  "oklch": {
    "l": 0.35449,
    "c": 0.10496,
    "h": 277.5
  },
  "luminance": 0.04188
}

Semantic roles & 50–950 ramp

primary
#303371
secondary
#A29F5B
accent
#CB58D0
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #303371

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

Preview Lab → · Contrast checker → · Palette generator →

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