#3340C8#3340C8

#3340C8 is a mid, highly saturated blue. Relative luminance 0.085; OKLCH L 45.7% C 0.208 H 270.9°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#3340C8
RGBrgb(51, 64, 200)
HSLhsl(235, 59%, 49%)
HSVhsv(235, 75%, 78%)
CMYKcmyk(74.5%, 68%, 0%, 21.6%)
CIE-LABlab(35.08, 41.47, -71.75)
CIE-LCHlch(35.08, 82.87, 300.03°)
OKLaboklab(45.73% 0.0034 -0.2076)
OKLCHoklch(45.73% 0.208 270.9)
XYZxyz(13.6204, 8.5393, 55.5628)
Luminance0.0854 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3340C8 #C8BB33
analogous
#338BC8 #3340C8 #7133C8
triadic
#3340C8 #C83340 #40C833
tetradic
#3340C8 #C8338B #C8BB33 #33C871
square
#3340C8 #C8338B #C8BB33 #33C871
split-complementary
#3340C8 #C87133 #8BC833
monochromatic
#1A2166 #273097 #3340C8 #616CD7 #9299E3

Accessibility & contrast

On white

7.75
#3340C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#3340C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3340C8
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3340C8#FFFFFF#000000##FFFFFF
##3340C81.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACC
Deuteranopia (green-blind)
#004BC5
Tritanopia (blue-blind)
#00657F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3340c8;
/* rgb */ color: rgb(51, 64, 200);
/* oklch */ color: oklch(45.7% 0.208 270.9);
Tailwind
colors: {
  custom: {
    50: '#8175da',
    500: '#3340c8',
    950: '#000000',
  },
}
SCSS
$custom: #3340c8;
$custom-light: #8175da;
$custom-dark: #000000;
JSON
{
  "hex": "#3340c8",
  "rgb": {
    "r": 51,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 234.765,
    "s": 59.363,
    "l": 49.216
  },
  "oklch": {
    "l": 0.45728,
    "c": 0.20763,
    "h": 270.9
  },
  "luminance": 0.08541
}

Semantic roles & 50–950 ramp

primary
#3340C8
secondary
#CEC889
accent
#D545E3
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3340C8

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

Preview Lab → · Contrast checker → · Palette generator →

#3340C8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva