#333D97#333D97

#333D97 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.8% C 0.146 H 273.2°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#333D97
RGBrgb(51, 61, 151)
HSLhsl(234, 50%, 40%)
HSVhsv(234, 66%, 59%)
CMYKcmyk(66.2%, 59.6%, 0%, 40.8%)
CIE-LABlab(30.10, 25.94, -50.71)
CIE-LCHlch(30.10, 56.96, 297.09°)
OKLaboklab(40.76% 0.0082 -0.146)
OKLCHoklch(40.76% 0.146 273.2)
XYZxyz(8.6180, 6.2749, 30.0292)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333D97 #978D33
analogous
#336F97 #333D97 #5B3397
triadic
#333D97 #97333D #3D9733
tetradic
#333D97 #97336F #978D33 #33975B
square
#333D97 #97336F #978D33 #33975B
split-complementary
#333D97 #975B33 #6F9733
monochromatic
#14183C #242B69 #333D97 #4753C1 #747DD0

Accessibility & contrast

On white

9.31
#333D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#333D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333D97
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333D97#FFFFFF#000000##FFFFFF
##333D971.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9A
Deuteranopia (green-blind)
#004395
Tritanopia (blue-blind)
#005364
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #333d97;
/* rgb */ color: rgb(51, 61, 151);
/* oklch */ color: oklch(40.8% 0.146 273.2);
Tailwind
colors: {
  custom: {
    50: '#7772b6',
    500: '#333d97',
    950: '#000000',
  },
}
SCSS
$custom: #333d97;
$custom-light: #7772b6;
$custom-dark: #000000;
JSON
{
  "hex": "#333d97",
  "rgb": {
    "r": 51,
    "g": 61,
    "b": 151
  },
  "hsl": {
    "h": 234,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.4076,
    "c": 0.14619,
    "h": 273.2
  },
  "luminance": 0.06276
}

Semantic roles & 50–950 ramp

primary
#333D97
secondary
#B8B16D
accent
#CB4FD9
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #333D97

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

Preview Lab → · Contrast checker → · Palette generator →

#333D97 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva