#333897#333897

#333897 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.8% C 0.153 H 274.8°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#333897
RGBrgb(51, 56, 151)
HSLhsl(237, 50%, 40%)
HSVhsv(237, 66%, 59%)
CMYKcmyk(66.2%, 62.9%, 0%, 40.8%)
CIE-LABlab(28.81, 29.23, -52.80)
CIE-LCHlch(28.81, 60.35, 298.97°)
OKLaboklab(39.81% 0.0127 -0.1521)
OKLCHoklch(39.81% 0.153 274.8)
XYZxyz(8.3635, 5.7658, 29.9443)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333897 #979233
analogous
#336A97 #333897 #603397
triadic
#333897 #973338 #389733
tetradic
#333897 #97336A #979233 #339760
square
#333897 #97336A #979233 #339760
split-complementary
#333897 #976033 #6A9733
monochromatic
#14163C #242769 #333897 #474DC1 #7479D0

Accessibility & contrast

On white

9.75
#333897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#333897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333897
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333897#FFFFFF#000000##FFFFFF
##3338971.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#004095
Tritanopia (blue-blind)
#005062
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #333897;
/* rgb */ color: rgb(51, 56, 151);
/* oklch */ color: oklch(39.8% 0.153 274.8);
Tailwind
colors: {
  custom: {
    50: '#776eb6',
    500: '#333897',
    950: '#000000',
  },
}
SCSS
$custom: #333897;
$custom-light: #776eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#333897",
  "rgb": {
    "r": 51,
    "g": 56,
    "b": 151
  },
  "hsl": {
    "h": 237,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39812,
    "c": 0.15266,
    "h": 274.8
  },
  "luminance": 0.05767
}

Semantic roles & 50–950 ramp

primary
#333897
secondary
#B8B56D
accent
#D24FD9
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #333897

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

Preview Lab → · Contrast checker → · Palette generator →

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