#3338B2#3338B2

#3338B2 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.3% C 0.189 H 273.2°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#3338B2
RGBrgb(51, 56, 178)
HSLhsl(238, 55%, 45%)
HSVhsv(238, 71%, 70%)
CMYKcmyk(71.3%, 68.5%, 0%, 30.2%)
CIE-LABlab(31.22, 38.74, -65.14)
CIE-LCHlch(31.22, 75.79, 300.74°)
OKLaboklab(42.31% 0.0104 -0.1883)
OKLCHoklch(42.31% 0.189 273.2)
XYZxyz(10.8126, 6.7454, 42.8430)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3338B2 #B2AD33
analogous
#3377B2 #3338B2 #6E33B2
triadic
#3338B2 #B23338 #38B233
tetradic
#3338B2 #B23377 #B2AD33 #33B26E
square
#3338B2 #B23377 #B2AD33 #33B26E
split-complementary
#3338B2 #B26E33 #77B233
monochromatic
#181A53 #252982 #3338B2 #5459CE #8487DC

Accessibility & contrast

On white

8.94
#3338B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#3338B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3338B2
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3338B2#FFFFFF#000000##FFFFFF
##3338B21.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB6
Deuteranopia (green-blind)
#0044B0
Tritanopia (blue-blind)
#005970
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3338b2;
/* rgb */ color: rgb(51, 56, 178);
/* oklch */ color: oklch(42.3% 0.189 273.2);
Tailwind
colors: {
  custom: {
    50: '#7d6fca',
    500: '#3338b2',
    950: '#000000',
  },
}
SCSS
$custom: #3338b2;
$custom-light: #7d6fca;
$custom-dark: #000000;
JSON
{
  "hex": "#3338b2",
  "rgb": {
    "r": 51,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 237.638,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.42307,
    "c": 0.1886,
    "h": 273.2
  },
  "luminance": 0.06747
}

Semantic roles & 50–950 ramp

primary
#3338B2
secondary
#C5C27C
accent
#D949DF
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3338B2

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

Preview Lab → · Contrast checker → · Palette generator →

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