#3338B1#3338B1

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

Color values

HEX#3338B1
RGBrgb(51, 56, 177)
HSLhsl(238, 55%, 45%)
HSVhsv(238, 71%, 69%)
CMYKcmyk(71.2%, 68.4%, 0%, 30.6%)
CIE-LABlab(31.13, 38.39, -64.70)
CIE-LCHlch(31.13, 75.23, 300.68°)
OKLaboklab(42.21% 0.0105 -0.187)
OKLCHoklch(42.21% 0.187 273.2)
XYZxyz(10.7126, 6.7054, 42.3162)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3338B1 #B1AC33
analogous
#3377B1 #3338B1 #6D33B1
triadic
#3338B1 #B13338 #38B133
tetradic
#3338B1 #B13377 #B1AC33 #33B16D
square
#3338B1 #B13377 #B1AC33 #33B16D
split-complementary
#3338B1 #B16D33 #77B133
monochromatic
#181A52 #252981 #3338B1 #5458CE #8387DB

Accessibility & contrast

On white

8.97
#3338B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#3338B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3338B1
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3338B1#FFFFFF#000000##FFFFFF
##3338B11.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB5
Deuteranopia (green-blind)
#0043AF
Tritanopia (blue-blind)
#005970
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3338b1;
/* rgb */ color: rgb(51, 56, 177);
/* oklch */ color: oklch(42.2% 0.187 273.2);
Tailwind
colors: {
  custom: {
    50: '#7d6fc9',
    500: '#3338b1',
    950: '#000000',
  },
}
SCSS
$custom: #3338b1;
$custom-light: #7d6fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#3338b1",
  "rgb": {
    "r": 51,
    "g": 56,
    "b": 177
  },
  "hsl": {
    "h": 237.619,
    "s": 55.263,
    "l": 44.706
  },
  "oklch": {
    "l": 0.42211,
    "c": 0.18731,
    "h": 273.2
  },
  "luminance": 0.06706
}

Semantic roles & 50–950 ramp

primary
#3338B1
secondary
#C5C27B
accent
#D949DF
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3338B1

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

Preview Lab → · Contrast checker → · Palette generator →

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