#303261#303261

#303261 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.1% C 0.081 H 279.3°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#303261
RGBrgb(48, 50, 97)
HSLhsl(238, 34%, 28%)
HSVhsv(238, 51%, 38%)
CMYKcmyk(50.5%, 48.5%, 0%, 62%)
CIE-LABlab(22.90, 13.41, -28.27)
CIE-LCHlch(22.90, 31.29, 295.38°)
OKLaboklab(34.06% 0.0132 -0.0802)
OKLCHoklch(34.06% 0.081 279.3)
XYZxyz(4.5165, 3.7724, 11.7971)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303261 #615F30
analogous
#304A61 #303261 #463061
triadic
#303261 #613032 #326130
tetradic
#303261 #61304A #615F30 #306146
square
#303261 #61304A #615F30 #306146
split-complementary
#303261 #614630 #4A6130
monochromatic
#0A0B14 #1C1D38 #303261 #44478A #5D60AF

Accessibility & contrast

On white

11.97
#303261 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#303261 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303261
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303261#FFFFFF#000000##FFFFFF
##3032611.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3963
Deuteranopia (green-blind)
#1B3560
Tritanopia (blue-blind)
#1E3C44
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #303261;
/* rgb */ color: rgb(48, 50, 97);
/* oklch */ color: oklch(34.1% 0.081 279.3);
Tailwind
colors: {
  custom: {
    50: '#6c698e',
    500: '#303261',
    950: '#000000',
  },
}
SCSS
$custom: #303261;
$custom-light: #6c698e;
$custom-dark: #000000;
JSON
{
  "hex": "#303261",
  "rgb": {
    "r": 48,
    "g": 50,
    "b": 97
  },
  "hsl": {
    "h": 237.551,
    "s": 33.793,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34056,
    "c": 0.08125,
    "h": 279.3
  },
  "luminance": 0.03773
}

Semantic roles & 50–950 ramp

primary
#303261
secondary
#92905A
accent
#C55ECA
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#07060C
muted
#7A7A7D

Preview Lab

Preview with #303261

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

Preview Lab → · Contrast checker → · Palette generator →

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