#3338B9#3338B9

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

Color values

HEX#3338B9
RGBrgb(51, 56, 185)
HSLhsl(238, 57%, 46%)
HSVhsv(238, 72%, 73%)
CMYKcmyk(72.4%, 69.7%, 0%, 27.5%)
CIE-LABlab(31.88, 41.14, -68.20)
CIE-LCHlch(31.88, 79.65, 301.10°)
OKLaboklab(42.99% 0.0095 -0.1973)
OKLCHoklch(42.99% 0.197 272.8)
XYZxyz(11.5334, 7.0338, 46.6394)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3338B9 #B9B433
analogous
#337BB9 #3338B9 #7133B9
triadic
#3338B9 #B93338 #38B933
tetradic
#3338B9 #B9337B #B9B433 #33B971
square
#3338B9 #B9337B #B9B433 #33B971
split-complementary
#3338B9 #B97133 #7BB933
monochromatic
#191B59 #262989 #3338B9 #585DD1 #888BDE

Accessibility & contrast

On white

8.72
#3338B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#3338B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3338B9
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3338B9#FFFFFF#000000##FFFFFF
##3338B91.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BD
Deuteranopia (green-blind)
#0045B7
Tritanopia (blue-blind)
#005C74
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3338b9;
/* rgb */ color: rgb(51, 56, 185);
/* oklch */ color: oklch(43.0% 0.197 272.8);
Tailwind
colors: {
  custom: {
    50: '#7f6fcf',
    500: '#3338b9',
    950: '#000000',
  },
}
SCSS
$custom: #3338b9;
$custom-light: #7f6fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#3338b9",
  "rgb": {
    "r": 51,
    "g": 56,
    "b": 185
  },
  "hsl": {
    "h": 237.761,
    "s": 56.78,
    "l": 46.275
  },
  "oklch": {
    "l": 0.42988,
    "c": 0.19749,
    "h": 272.8
  },
  "luminance": 0.07035
}

Semantic roles & 50–950 ramp

primary
#3338B9
secondary
#C8C580
accent
#DA48E0
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #3338B9

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

Preview Lab → · Contrast checker → · Palette generator →

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