#3338AE#3338AE

#3338AE is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.9% C 0.183 H 273.4°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#3338AE
RGBrgb(51, 56, 174)
HSLhsl(238, 55%, 44%)
HSVhsv(238, 71%, 68%)
CMYKcmyk(70.7%, 67.8%, 0%, 31.8%)
CIE-LABlab(30.85, 37.35, -63.37)
CIE-LCHlch(30.85, 73.55, 300.51°)
OKLaboklab(41.92% 0.0108 -0.1831)
OKLCHoklch(41.92% 0.183 273.4)
XYZxyz(10.4168, 6.5871, 40.7587)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3338AE #AEA933
analogous
#3376AE #3338AE #6C33AE
triadic
#3338AE #AE3338 #38AE33
tetradic
#3338AE #AE3376 #AEA933 #33AE6C
square
#3338AE #AE3376 #AEA933 #33AE6C
split-complementary
#3338AE #AE6C33 #76AE33
monochromatic
#171A4F #25297F #3338AE #5257CC #8185DA

Accessibility & contrast

On white

9.06
#3338AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#3338AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3338AE
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3338AE#FFFFFF#000000##FFFFFF
##3338AE1.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB2
Deuteranopia (green-blind)
#0043AC
Tritanopia (blue-blind)
#00586E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3338ae;
/* rgb */ color: rgb(51, 56, 174);
/* oklch */ color: oklch(41.9% 0.183 273.4);
Tailwind
colors: {
  custom: {
    50: '#7c6fc7',
    500: '#3338ae',
    950: '#000000',
  },
}
SCSS
$custom: #3338ae;
$custom-light: #7c6fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#3338ae",
  "rgb": {
    "r": 51,
    "g": 56,
    "b": 174
  },
  "hsl": {
    "h": 237.561,
    "s": 54.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.41924,
    "c": 0.18344,
    "h": 273.4
  },
  "luminance": 0.06588
}

Semantic roles & 50–950 ramp

primary
#3338AE
secondary
#C3C079
accent
#D84ADE
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3338AE

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

Preview Lab → · Contrast checker → · Palette generator →

#3338AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva