#3338D2#3338D2

#3338D2 is a mid, highly saturated blue. Relative luminance 0.082; OKLCH L 45.5% C 0.228 H 271.5°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#3338D2
RGBrgb(51, 56, 210)
HSLhsl(238, 64%, 51%)
HSVhsv(238, 76%, 82%)
CMYKcmyk(75.7%, 73.3%, 0%, 17.6%)
CIE-LABlab(34.36, 49.52, -78.74)
CIE-LCHlch(34.36, 93.02, 302.17°)
OKLaboklab(45.51% 0.0059 -0.228)
OKLCHoklch(45.51% 0.228 271.5)
XYZxyz(14.4083, 8.1837, 61.7805)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3338D2 #D2CD33
analogous
#3387D2 #3338D2 #7D33D2
triadic
#3338D2 #D23338 #38D233
tetradic
#3338D2 #D23387 #D2CD33 #33D27D
square
#3338D2 #D23387 #D2CD33 #33D27D
split-complementary
#3338D2 #D27D33 #87D233
monochromatic
#191C72 #2428A4 #3338D2 #6569DD #979AE8

Accessibility & contrast

On white

7.96
#3338D2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#3338D2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3338D2
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3338D2#FFFFFF#000000##FFFFFF
##3338D21.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D6
Deuteranopia (green-blind)
#0049CF
Tritanopia (blue-blind)
#006582
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3338d2;
/* rgb */ color: rgb(51, 56, 210);
/* oklch */ color: oklch(45.5% 0.228 271.5);
Tailwind
colors: {
  custom: {
    50: '#8470e1',
    500: '#3338d2',
    950: '#000000',
  },
}
SCSS
$custom: #3338d2;
$custom-light: #8470e1;
$custom-dark: #000000;
JSON
{
  "hex": "#3338d2",
  "rgb": {
    "r": 51,
    "g": 56,
    "b": 210
  },
  "hsl": {
    "h": 238.113,
    "s": 63.855,
    "l": 51.176
  },
  "oklch": {
    "l": 0.45505,
    "c": 0.22804,
    "h": 271.5
  },
  "luminance": 0.08185
}

Semantic roles & 50–950 ramp

primary
#3338D2
secondary
#D4D18D
accent
#E241E7
background
#F9F6FE
surface
#F1ECFC
border
#CBC7D5
text
#0D0815
muted
#7E7B84

Preview Lab

Preview with #3338D2

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

Preview Lab → · Contrast checker → · Palette generator →

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