#3338B5#3338B5

#3338B5 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.6% C 0.192 H 273.0°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#3338B5
RGBrgb(51, 56, 181)
HSLhsl(238, 56%, 45%)
HSVhsv(238, 72%, 71%)
CMYKcmyk(71.8%, 69.1%, 0%, 29%)
CIE-LABlab(31.50, 39.77, -66.46)
CIE-LCHlch(31.50, 77.45, 300.90°)
OKLaboklab(42.6% 0.01 -0.1922)
OKLCHoklch(42.6% 0.192 273)
XYZxyz(11.1171, 6.8672, 44.4467)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3338B5 #B5B033
analogous
#3379B5 #3338B5 #6F33B5
triadic
#3338B5 #B53338 #38B533
tetradic
#3338B5 #B53379 #B5B033 #33B56F
square
#3338B5 #B53379 #B5B033 #33B56F
split-complementary
#3338B5 #B56F33 #79B533
monochromatic
#181A56 #262985 #3338B5 #565BCF #8689DD

Accessibility & contrast

On white

8.85
#3338B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3338B5
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3338B5#FFFFFF#000000##FFFFFF
##3338B51.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B9
Deuteranopia (green-blind)
#0044B3
Tritanopia (blue-blind)
#005A72
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3338b5;
/* rgb */ color: rgb(51, 56, 181);
/* oklch */ color: oklch(42.6% 0.192 273.0);
Tailwind
colors: {
  custom: {
    50: '#7e6fcc',
    500: '#3338b5',
    950: '#000000',
  },
}
SCSS
$custom: #3338b5;
$custom-light: #7e6fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#3338b5",
  "rgb": {
    "r": 51,
    "g": 56,
    "b": 181
  },
  "hsl": {
    "h": 237.692,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.42597,
    "c": 0.19242,
    "h": 273
  },
  "luminance": 0.06868
}

Semantic roles & 50–950 ramp

primary
#3338B5
secondary
#C6C47D
accent
#DA48DF
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #3338B5

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

Preview Lab → · Contrast checker → · Palette generator →

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