#3338B6#3338B6

#3338B6 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.7% C 0.194 H 272.9°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#3338B6
RGBrgb(51, 56, 182)
HSLhsl(238, 56%, 46%)
HSVhsv(238, 72%, 71%)
CMYKcmyk(72%, 69.2%, 0%, 28.6%)
CIE-LABlab(31.60, 40.12, -66.90)
CIE-LCHlch(31.60, 78.00, 300.95°)
OKLaboklab(42.7% 0.0099 -0.1934)
OKLCHoklch(42.7% 0.194 272.9)
XYZxyz(11.2201, 6.9084, 44.9890)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3338B6 #B6B133
analogous
#3379B6 #3338B6 #6F33B6
triadic
#3338B6 #B63338 #38B633
tetradic
#3338B6 #B63379 #B6B133 #33B66F
square
#3338B6 #B63379 #B6B133 #33B66F
split-complementary
#3338B6 #B66F33 #79B633
monochromatic
#181B56 #262986 #3338B6 #565BD0 #868ADD

Accessibility & contrast

On white

8.82
#3338B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#3338B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3338B6
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3338B6#FFFFFF#000000##FFFFFF
##3338B61.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BA
Deuteranopia (green-blind)
#0044B4
Tritanopia (blue-blind)
#005A72
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3338b6;
/* rgb */ color: rgb(51, 56, 182);
/* oklch */ color: oklch(42.7% 0.194 272.9);
Tailwind
colors: {
  custom: {
    50: '#7e6fcd',
    500: '#3338b6',
    950: '#000000',
  },
}
SCSS
$custom: #3338b6;
$custom-light: #7e6fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#3338b6",
  "rgb": {
    "r": 51,
    "g": 56,
    "b": 182
  },
  "hsl": {
    "h": 237.71,
    "s": 56.223,
    "l": 45.686
  },
  "oklch": {
    "l": 0.42695,
    "c": 0.19369,
    "h": 272.9
  },
  "luminance": 0.0691
}

Semantic roles & 50–950 ramp

primary
#3338B6
secondary
#C7C47E
accent
#DA48E0
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #3338B6

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

Preview Lab → · Contrast checker → · Palette generator →

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