#3338D4#3338D4

#3338D4 is a mid, highly saturated blue. Relative luminance 0.083; OKLCH L 45.7% C 0.230 H 271.4°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#3338D4
RGBrgb(51, 56, 212)
HSLhsl(238, 65%, 52%)
HSVhsv(238, 76%, 83%)
CMYKcmyk(75.9%, 73.6%, 0%, 16.9%)
CIE-LABlab(34.57, 50.18, -79.56)
CIE-LCHlch(34.57, 94.06, 302.24°)
OKLaboklab(45.71% 0.0056 -0.2303)
OKLCHoklch(45.71% 0.23 271.4)
XYZxyz(14.6591, 8.2840, 63.1010)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3338D4 #D4CF33
analogous
#3388D4 #3338D4 #7F33D4
triadic
#3338D4 #D43338 #38D433
tetradic
#3338D4 #D43388 #D4CF33 #33D47F
square
#3338D4 #D43388 #D4CF33 #33D47F
split-complementary
#3338D4 #D47F33 #88D433
monochromatic
#181B74 #2327A7 #3338D4 #6669DF #989BE9

Accessibility & contrast

On white

7.90
#3338D4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#3338D4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3338D4
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3338D4#FFFFFF#000000##FFFFFF
##3338D41.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D9
Deuteranopia (green-blind)
#0049D1
Tritanopia (blue-blind)
#006583
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3338d4;
/* rgb */ color: rgb(51, 56, 212);
/* oklch */ color: oklch(45.7% 0.230 271.4);
Tailwind
colors: {
  custom: {
    50: '#8570e3',
    500: '#3338d4',
    950: '#000000',
  },
}
SCSS
$custom: #3338d4;
$custom-light: #8570e3;
$custom-dark: #000000;
JSON
{
  "hex": "#3338d4",
  "rgb": {
    "r": 51,
    "g": 56,
    "b": 212
  },
  "hsl": {
    "h": 238.137,
    "s": 65.182,
    "l": 51.569
  },
  "oklch": {
    "l": 0.45711,
    "c": 0.23041,
    "h": 271.4
  },
  "luminance": 0.08286
}

Semantic roles & 50–950 ramp

primary
#3338D4
secondary
#D5D38E
accent
#E340E8
background
#F9F6FE
surface
#F1ECFC
border
#CBC7D5
text
#0D0816
muted
#7E7B84

Preview Lab

Preview with #3338D4

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

Preview Lab → · Contrast checker → · Palette generator →

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