#3338B4#3338B4

#3338B4 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.5% C 0.191 H 273.0°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#3338B4
RGBrgb(51, 56, 180)
HSLhsl(238, 56%, 45%)
HSVhsv(238, 72%, 71%)
CMYKcmyk(71.7%, 68.9%, 0%, 29.4%)
CIE-LABlab(31.41, 39.43, -66.02)
CIE-LCHlch(31.41, 76.90, 300.84°)
OKLaboklab(42.5% 0.0102 -0.1909)
OKLCHoklch(42.5% 0.191 273)
XYZxyz(11.0149, 6.8264, 43.9083)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3338B4 #B4AF33
analogous
#3379B4 #3338B4 #6E33B4
triadic
#3338B4 #B43338 #38B433
tetradic
#3338B4 #B43379 #B4AF33 #33B46E
square
#3338B4 #B43379 #B4AF33 #33B46E
split-complementary
#3338B4 #B46E33 #79B433
monochromatic
#181A55 #252984 #3338B4 #555ACF #8588DC

Accessibility & contrast

On white

8.88
#3338B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#3338B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3338B4
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3338B4#FFFFFF#000000##FFFFFF
##3338B41.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B8
Deuteranopia (green-blind)
#0044B2
Tritanopia (blue-blind)
#005A71
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3338b4;
/* rgb */ color: rgb(51, 56, 180);
/* oklch */ color: oklch(42.5% 0.191 273.0);
Tailwind
colors: {
  custom: {
    50: '#7d6fcc',
    500: '#3338b4',
    950: '#000000',
  },
}
SCSS
$custom: #3338b4;
$custom-light: #7d6fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#3338b4",
  "rgb": {
    "r": 51,
    "g": 56,
    "b": 180
  },
  "hsl": {
    "h": 237.674,
    "s": 55.844,
    "l": 45.294
  },
  "oklch": {
    "l": 0.425,
    "c": 0.19115,
    "h": 273
  },
  "luminance": 0.06827
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3338B4

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

Preview Lab → · Contrast checker → · Palette generator →

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