#3338B3#3338B3

#3338B3 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.4% C 0.190 H 273.1°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#3338B3
RGBrgb(51, 56, 179)
HSLhsl(238, 56%, 45%)
HSVhsv(238, 72%, 70%)
CMYKcmyk(71.5%, 68.7%, 0%, 29.8%)
CIE-LABlab(31.31, 39.08, -65.58)
CIE-LCHlch(31.31, 76.34, 300.79°)
OKLaboklab(42.4% 0.0103 -0.1896)
OKLCHoklch(42.4% 0.19 273.1)
XYZxyz(10.9134, 6.7858, 43.3737)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3338B3 #B3AE33
analogous
#3378B3 #3338B3 #6E33B3
triadic
#3338B3 #B33338 #38B333
tetradic
#3338B3 #B33378 #B3AE33 #33B36E
square
#3338B3 #B33378 #B3AE33 #33B36E
split-complementary
#3338B3 #B36E33 #78B333
monochromatic
#181A54 #252983 #3338B3 #5559CE #8488DC

Accessibility & contrast

On white

8.91
#3338B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#3338B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3338B3
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3338B3#FFFFFF#000000##FFFFFF
##3338B31.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B7
Deuteranopia (green-blind)
#0044B1
Tritanopia (blue-blind)
#005971
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3338b3;
/* rgb */ color: rgb(51, 56, 179);
/* oklch */ color: oklch(42.4% 0.190 273.1);
Tailwind
colors: {
  custom: {
    50: '#7d6fcb',
    500: '#3338b3',
    950: '#000000',
  },
}
SCSS
$custom: #3338b3;
$custom-light: #7d6fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#3338b3",
  "rgb": {
    "r": 51,
    "g": 56,
    "b": 179
  },
  "hsl": {
    "h": 237.656,
    "s": 55.652,
    "l": 45.098
  },
  "oklch": {
    "l": 0.42404,
    "c": 0.18988,
    "h": 273.1
  },
  "luminance": 0.06787
}

Semantic roles & 50–950 ramp

primary
#3338B3
secondary
#C6C37C
accent
#D949DF
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3338B3

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

Preview Lab → · Contrast checker → · Palette generator →

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