#333271#333271

#333271 is a dark, moderate blue. Relative luminance 0.042; OKLCH L 35.5% C 0.106 H 280.3°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#333271
RGBrgb(51, 50, 113)
HSLhsl(241, 39%, 32%)
HSVhsv(241, 56%, 44%)
CMYKcmyk(54.9%, 55.8%, 0%, 55.7%)
CIE-LABlab(24.25, 19.74, -36.45)
CIE-LCHlch(24.25, 41.45, 298.44°)
OKLaboklab(35.48% 0.0188 -0.1041)
OKLCHoklch(35.48% 0.106 280.3)
XYZxyz(5.4856, 4.1769, 16.1368)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333271 #707132
analogous
#325171 #333271 #533271
triadic
#333271 #713332 #327133
tetradic
#333271 #713251 #707132 #327153
square
#333271 #713251 #707132 #327153
split-complementary
#333271 #715332 #517132
monochromatic
#0D0C1C #201F47 #333271 #46459B #6563BA

Accessibility & contrast

On white

11.44
#333271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #333271
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333271#FFFFFF#000000##FFFFFF
##3332711.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F3C73
Deuteranopia (green-blind)
#063770
Tritanopia (blue-blind)
#19404C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #333271;
/* rgb */ color: rgb(51, 50, 113);
/* oklch */ color: oklch(35.5% 0.106 280.3);
Tailwind
colors: {
  custom: {
    50: '#706a9a',
    500: '#333271',
    950: '#000000',
  },
}
SCSS
$custom: #333271;
$custom-light: #706a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#333271",
  "rgb": {
    "r": 51,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 240.952,
    "s": 38.65,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35484,
    "c": 0.1058,
    "h": 280.3
  },
  "luminance": 0.04177
}

Semantic roles & 50–950 ramp

primary
#333271
secondary
#A1A25D
accent
#CF59CD
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #333271

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

Preview Lab → · Contrast checker → · Palette generator →

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