#333287#333287

#333287 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.3% C 0.138 H 277.9°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#333287
RGBrgb(51, 50, 135)
HSLhsl(241, 46%, 36%)
HSVhsv(241, 63%, 53%)
CMYKcmyk(62.2%, 63%, 0%, 47.1%)
CIE-LABlab(25.96, 27.48, -47.56)
CIE-LCHlch(25.96, 54.93, 300.02°)
OKLaboklab(37.3% 0.0189 -0.1368)
OKLCHoklch(37.3% 0.138 277.9)
XYZxyz(6.8776, 4.7338, 23.4683)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333287 #868732
analogous
#325C87 #333287 #5E3287
triadic
#333287 #873332 #328733
tetradic
#333287 #87325C #868732 #32875E
square
#333287 #87325C #868732 #32875E
split-complementary
#333287 #875E32 #5C8732
monochromatic
#11112E #22215A #333287 #4443B4 #6C6BC8

Accessibility & contrast

On white

10.79
#333287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#333287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333287
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333287#FFFFFF#000000##FFFFFF
##3332871.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418A
Deuteranopia (green-blind)
#003A85
Tritanopia (blue-blind)
#004757
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #333287;
/* rgb */ color: rgb(51, 50, 135);
/* oklch */ color: oklch(37.3% 0.138 277.9);
Tailwind
colors: {
  custom: {
    50: '#746aab',
    500: '#333287',
    950: '#000000',
  },
}
SCSS
$custom: #333287;
$custom-light: #746aab;
$custom-dark: #000000;
JSON
{
  "hex": "#333287",
  "rgb": {
    "r": 51,
    "g": 50,
    "b": 135
  },
  "hsl": {
    "h": 240.706,
    "s": 45.946,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37297,
    "c": 0.13811,
    "h": 277.9
  },
  "luminance": 0.04734
}

Semantic roles & 50–950 ramp

primary
#333287
secondary
#AFB065
accent
#D652D4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #333287

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

Preview Lab → · Contrast checker → · Palette generator →

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