#333DAA#333DAA

#333DAA is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.4% C 0.172 H 272.6°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#333DAA
RGBrgb(51, 61, 170)
HSLhsl(235, 54%, 43%)
HSVhsv(235, 70%, 67%)
CMYKcmyk(70%, 64.1%, 0%, 33.3%)
CIE-LABlab(31.68, 32.78, -59.62)
CIE-LCHlch(31.68, 68.04, 298.80°)
OKLaboklab(42.42% 0.0077 -0.1721)
OKLCHoklch(42.42% 0.172 272.6)
XYZxyz(10.2872, 6.9426, 38.8203)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333DAA #AAA033
analogous
#3378AA #333DAA #6433AA
triadic
#333DAA #AA333D #3DAA33
tetradic
#333DAA #AA3378 #AAA033 #33AA64
square
#333DAA #AA3378 #AAA033 #33AA64
split-complementary
#333DAA #AA6433 #78AA33
monochromatic
#171B4C #252C7B #333DAA #505ACA #7F86D9

Accessibility & contrast

On white

8.79
#333DAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#333DAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333DAA
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333DAA#FFFFFF#000000##FFFFFF
##333DAA1.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AD
Deuteranopia (green-blind)
#0045A8
Tritanopia (blue-blind)
#00596E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #333daa;
/* rgb */ color: rgb(51, 61, 170);
/* oklch */ color: oklch(42.4% 0.172 272.6);
Tailwind
colors: {
  custom: {
    50: '#7b72c4',
    500: '#333daa',
    950: '#000000',
  },
}
SCSS
$custom: #333daa;
$custom-light: #7b72c4;
$custom-dark: #000000;
JSON
{
  "hex": "#333daa",
  "rgb": {
    "r": 51,
    "g": 61,
    "b": 170
  },
  "hsl": {
    "h": 234.958,
    "s": 53.846,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42418,
    "c": 0.17228,
    "h": 272.6
  },
  "luminance": 0.06944
}

Semantic roles & 50–950 ramp

primary
#333DAA
secondary
#C2BB77
accent
#D14BDD
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #333DAA

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

Preview Lab → · Contrast checker → · Palette generator →

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