#303166#303166

#303166 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.2% C 0.091 H 279.6°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#303166
RGBrgb(48, 49, 102)
HSLhsl(239, 36%, 29%)
HSVhsv(239, 53%, 40%)
CMYKcmyk(52.9%, 52%, 0%, 60%)
CIE-LABlab(22.94, 15.85, -31.46)
CIE-LCHlch(22.94, 35.23, 296.74°)
OKLaboklab(34.19% 0.0152 -0.0896)
OKLCHoklch(34.19% 0.091 279.6)
XYZxyz(4.7148, 3.7840, 13.0498)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303166 #666530
analogous
#304C66 #303166 #4A3066
triadic
#303166 #663031 #316630
tetradic
#303166 #66304C #666530 #30664A
square
#303166 #66304C #666530 #30664A
split-complementary
#303166 #664A30 #4C6630
monochromatic
#0A0A15 #1C1D3C #303166 #444590 #5D5FB3

Accessibility & contrast

On white

11.95
#303166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#303166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303166
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303166#FFFFFF#000000##FFFFFF
##3031661.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193968
Deuteranopia (green-blind)
#143565
Tritanopia (blue-blind)
#1B3C46
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #303166;
/* rgb */ color: rgb(48, 49, 102);
/* oklch */ color: oklch(34.2% 0.091 279.6);
Tailwind
colors: {
  custom: {
    50: '#6d6992',
    500: '#303166',
    950: '#000000',
  },
}
SCSS
$custom: #303166;
$custom-light: #6d6992;
$custom-dark: #000000;
JSON
{
  "hex": "#303166",
  "rgb": {
    "r": 48,
    "g": 49,
    "b": 102
  },
  "hsl": {
    "h": 238.889,
    "s": 36,
    "l": 29.412
  },
  "oklch": {
    "l": 0.34194,
    "c": 0.09084,
    "h": 279.6
  },
  "luminance": 0.03784
}

Semantic roles & 50–950 ramp

primary
#303166
secondary
#97965A
accent
#CA5CCC
background
#F6F6F9
surface
#ECEBF1
border
#C7C6CB
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #303166

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

Preview Lab → · Contrast checker → · Palette generator →

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