#333899#333899

#333899 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.0% C 0.155 H 274.6°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#333899
RGBrgb(51, 56, 153)
HSLhsl(237, 50%, 40%)
HSVhsv(237, 67%, 60%)
CMYKcmyk(66.7%, 63.4%, 0%, 40%)
CIE-LABlab(28.98, 29.94, -53.74)
CIE-LCHlch(28.98, 61.52, 299.13°)
OKLaboklab(39.99% 0.0126 -0.1549)
OKLCHoklch(39.99% 0.155 274.6)
XYZxyz(8.5273, 5.8313, 30.8070)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333899 #999433
analogous
#336B99 #333899 #613399
triadic
#333899 #993338 #389933
tetradic
#333899 #99336B #999433 #339961
square
#333899 #99336B #999433 #339961
split-complementary
#333899 #996133 #6B9933
monochromatic
#14163D #24276B #333899 #474DC2 #757AD1

Accessibility & contrast

On white

9.69
#333899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#333899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333899
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333899#FFFFFF#000000##FFFFFF
##3338991.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499C
Deuteranopia (green-blind)
#004097
Tritanopia (blue-blind)
#005063
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #333899;
/* rgb */ color: rgb(51, 56, 153);
/* oklch */ color: oklch(40.0% 0.155 274.6);
Tailwind
colors: {
  custom: {
    50: '#776eb8',
    500: '#333899',
    950: '#000000',
  },
}
SCSS
$custom: #333899;
$custom-light: #776eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#333899",
  "rgb": {
    "r": 51,
    "g": 56,
    "b": 153
  },
  "hsl": {
    "h": 237.059,
    "s": 50,
    "l": 40
  },
  "oklch": {
    "l": 0.39989,
    "c": 0.15542,
    "h": 274.6
  },
  "luminance": 0.05832
}

Semantic roles & 50–950 ramp

primary
#333899
secondary
#B9B66E
accent
#D34EDA
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #333899

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

Preview Lab → · Contrast checker → · Palette generator →

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