#3338B8#3338B8

#3338B8 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.9% C 0.196 H 272.8°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#3338B8
RGBrgb(51, 56, 184)
HSLhsl(238, 57%, 46%)
HSVhsv(238, 72%, 72%)
CMYKcmyk(72.3%, 69.6%, 0%, 27.8%)
CIE-LABlab(31.79, 40.80, -67.77)
CIE-LCHlch(31.79, 79.10, 301.05°)
OKLaboklab(42.89% 0.0097 -0.196)
OKLCHoklch(42.89% 0.196 272.8)
XYZxyz(11.4282, 6.9917, 46.0854)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3338B8 #B8B333
analogous
#337AB8 #3338B8 #7033B8
triadic
#3338B8 #B83338 #38B833
tetradic
#3338B8 #B8337A #B8B333 #33B870
square
#3338B8 #B8337A #B8B333 #33B870
split-complementary
#3338B8 #B87033 #7AB833
monochromatic
#181B58 #262988 #3338B8 #585CD1 #888BDE

Accessibility & contrast

On white

8.76
#3338B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#3338B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3338B8
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3338B8#FFFFFF#000000##FFFFFF
##3338B81.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BC
Deuteranopia (green-blind)
#0044B6
Tritanopia (blue-blind)
#005B74
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3338b8;
/* rgb */ color: rgb(51, 56, 184);
/* oklch */ color: oklch(42.9% 0.196 272.8);
Tailwind
colors: {
  custom: {
    50: '#7e6fce',
    500: '#3338b8',
    950: '#000000',
  },
}
SCSS
$custom: #3338b8;
$custom-light: #7e6fce;
$custom-dark: #000000;
JSON
{
  "hex": "#3338b8",
  "rgb": {
    "r": 51,
    "g": 56,
    "b": 184
  },
  "hsl": {
    "h": 237.744,
    "s": 56.596,
    "l": 46.078
  },
  "oklch": {
    "l": 0.4289,
    "c": 0.19623,
    "h": 272.8
  },
  "luminance": 0.06993
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3338B8

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

Preview Lab → · Contrast checker → · Palette generator →

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