#303155#303155

#303155 is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.0% C 0.063 H 281.2°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#303155
RGBrgb(48, 49, 85)
HSLhsl(238, 28%, 26%)
HSVhsv(238, 44%, 33%)
CMYKcmyk(43.5%, 42.4%, 0%, 66.7%)
CIE-LABlab(21.87, 10.03, -22.00)
CIE-LCHlch(21.87, 24.18, 294.51°)
OKLaboklab(33.03% 0.0122 -0.0619)
OKLCHoklch(33.03% 0.063 281.2)
XYZxyz(3.9565, 3.4807, 9.0559)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303155 #555430
analogous
#304355 #303155 #413055
triadic
#303155 #553031 #315530
tetradic
#303155 #553043 #555430 #305541
square
#303155 #553043 #555430 #305541
split-complementary
#303155 #554130 #435530
monochromatic
#0B0B14 #1A1A2E #303155 #46487C #5C5EA3

Accessibility & contrast

On white

12.38
#303155 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#303155 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303155
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303155#FFFFFF#000000##FFFFFF
##3031551.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#253656
Deuteranopia (green-blind)
#233354
Tritanopia (blue-blind)
#25383F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #303155;
/* rgb */ color: rgb(48, 49, 85);
/* oklch */ color: oklch(33.0% 0.063 281.2);
Tailwind
colors: {
  custom: {
    50: '#6a6985',
    500: '#303155',
    950: '#000000',
  },
}
SCSS
$custom: #303155;
$custom-light: #6a6985;
$custom-dark: #000000;
JSON
{
  "hex": "#303155",
  "rgb": {
    "r": 48,
    "g": 49,
    "b": 85
  },
  "hsl": {
    "h": 238.378,
    "s": 27.82,
    "l": 26.078
  },
  "oklch": {
    "l": 0.33034,
    "c": 0.06306,
    "h": 281.2
  },
  "luminance": 0.03481
}

Semantic roles & 50–950 ramp

primary
#303155
secondary
#86855B
accent
#C264C4
background
#F6F6F8
surface
#EBEBEF
border
#C6C6CA
text
#06060B
muted
#7A7A7C

Preview Lab

Preview with #303155

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

Preview Lab → · Contrast checker → · Palette generator →

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