#3338C4#3338C4

#3338C4 is a dark, highly saturated blue. Relative luminance 0.075; OKLCH L 44.1% C 0.211 H 272.2°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#3338C4
RGBrgb(51, 56, 196)
HSLhsl(238, 59%, 48%)
HSVhsv(238, 74%, 77%)
CMYKcmyk(74%, 71.4%, 0%, 23.1%)
CIE-LABlab(32.95, 44.87, -72.92)
CIE-LCHlch(32.95, 85.62, 301.61°)
OKLaboklab(44.08% 0.008 -0.211)
OKLCHoklch(44.08% 0.211 272.2)
XYZxyz(12.7399, 7.5163, 52.9932)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3338C4 #C4BF33
analogous
#3380C4 #3338C4 #7633C4
triadic
#3338C4 #C43338 #38C433
tetradic
#3338C4 #C43380 #C4BF33 #33C476
square
#3338C4 #C43380 #C4BF33 #33C476
split-complementary
#3338C4 #C47633 #80C433
monochromatic
#1A1C63 #262A93 #3338C4 #5F63D5 #8F92E2

Accessibility & contrast

On white

8.39
#3338C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#3338C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3338C4
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3338C4#FFFFFF#000000##FFFFFF
##3338C41.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C8
Deuteranopia (green-blind)
#0046C1
Tritanopia (blue-blind)
#005F7A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3338c4;
/* rgb */ color: rgb(51, 56, 196);
/* oklch */ color: oklch(44.1% 0.211 272.2);
Tailwind
colors: {
  custom: {
    50: '#8170d7',
    500: '#3338c4',
    950: '#000000',
  },
}
SCSS
$custom: #3338c4;
$custom-light: #8170d7;
$custom-dark: #000000;
JSON
{
  "hex": "#3338c4",
  "rgb": {
    "r": 51,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 237.931,
    "s": 58.704,
    "l": 48.431
  },
  "oklch": {
    "l": 0.44079,
    "c": 0.21115,
    "h": 272.2
  },
  "luminance": 0.07518
}

Semantic roles & 50–950 ramp

primary
#3338C4
secondary
#CDCA86
accent
#DD46E2
background
#F8F6FD
surface
#F0ECFA
border
#CBC7D3
text
#0C0715
muted
#7D7A83

Preview Lab

Preview with #3338C4

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

Preview Lab → · Contrast checker → · Palette generator →

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