#333887#333887

#333887 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.4% C 0.130 H 275.7°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#333887
RGBrgb(51, 56, 135)
HSLhsl(236, 45%, 36%)
HSVhsv(236, 62%, 53%)
CMYKcmyk(62.2%, 58.5%, 0%, 47.1%)
CIE-LABlab(27.52, 23.49, -45.03)
CIE-LCHlch(27.52, 50.79, 297.55°)
OKLaboklab(38.45% 0.0129 -0.1293)
OKLCHoklch(38.45% 0.13 275.7)
XYZxyz(7.1512, 5.2809, 23.5594)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333887 #878233
analogous
#336287 #333887 #583387
triadic
#333887 #873338 #388733
tetradic
#333887 #873362 #878233 #338758
square
#333887 #873362 #878233 #338758
split-complementary
#333887 #875833 #628733
monochromatic
#11132E #22265B #333887 #444AB3 #6D72C8

Accessibility & contrast

On white

10.21
#333887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#333887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333887
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333887#FFFFFF#000000##FFFFFF
##3338871.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458A
Deuteranopia (green-blind)
#003D85
Tritanopia (blue-blind)
#004B5A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #333887;
/* rgb */ color: rgb(51, 56, 135);
/* oklch */ color: oklch(38.4% 0.130 275.7);
Tailwind
colors: {
  custom: {
    50: '#746eab',
    500: '#333887',
    950: '#000000',
  },
}
SCSS
$custom: #333887;
$custom-light: #746eab;
$custom-dark: #000000;
JSON
{
  "hex": "#333887",
  "rgb": {
    "r": 51,
    "g": 56,
    "b": 135
  },
  "hsl": {
    "h": 236.429,
    "s": 45.161,
    "l": 36.471
  },
  "oklch": {
    "l": 0.38449,
    "c": 0.12996,
    "h": 275.7
  },
  "luminance": 0.05281
}

Semantic roles & 50–950 ramp

primary
#333887
secondary
#B0AB66
accent
#CD53D5
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #333887

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

Preview Lab → · Contrast checker → · Palette generator →

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