#303278#303278

#303278 is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.8% C 0.117 H 277.5°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#303278
RGBrgb(48, 50, 120)
HSLhsl(238, 43%, 33%)
HSVhsv(238, 60%, 47%)
CMYKcmyk(60%, 58.3%, 0%, 52.9%)
CIE-LABlab(24.53, 21.57, -40.47)
CIE-LCHlch(24.53, 45.86, 298.06°)
OKLaboklab(35.8% 0.0152 -0.116)
OKLCHoklch(35.8% 0.117 277.5)
XYZxyz(5.7486, 4.2652, 18.2860)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303278 #787630
analogous
#305678 #303278 #523078
triadic
#303278 #783032 #327830
tetradic
#303278 #783056 #787630 #307852
square
#303278 #783056 #787630 #307852
split-complementary
#303278 #785230 #567830
monochromatic
#0D0E21 #1F204C #303278 #4144A4 #6265C0

Accessibility & contrast

On white

11.33
#303278 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#303278 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303278
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303278#FFFFFF#000000##FFFFFF
##3032781.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7A
Deuteranopia (green-blind)
#003777
Tritanopia (blue-blind)
#044250
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #303278;
/* rgb */ color: rgb(48, 50, 120);
/* oklch */ color: oklch(35.8% 0.117 277.5);
Tailwind
colors: {
  custom: {
    50: '#70699f',
    500: '#303278',
    950: '#000000',
  },
}
SCSS
$custom: #303278;
$custom-light: #70699f;
$custom-dark: #000000;
JSON
{
  "hex": "#303278",
  "rgb": {
    "r": 48,
    "g": 50,
    "b": 120
  },
  "hsl": {
    "h": 238.333,
    "s": 42.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35799,
    "c": 0.11702,
    "h": 277.5
  },
  "luminance": 0.04266
}

Semantic roles & 50–950 ramp

primary
#303278
secondary
#A7A55C
accent
#CF55D3
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060F
muted
#7B7A7E

Preview Lab

Preview with #303278

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

Preview Lab → · Contrast checker → · Palette generator →

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