#3040CE#3040CE

#3040CE is a mid, highly saturated blue. Relative luminance 0.088; OKLCH L 46.2% C 0.216 H 269.9°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#3040CE
RGBrgb(48, 64, 206)
HSLhsl(234, 62%, 50%)
HSVhsv(234, 77%, 81%)
CMYKcmyk(76.7%, 68.9%, 0%, 19.2%)
CIE-LABlab(35.50, 43.27, -74.56)
CIE-LCHlch(35.50, 86.20, 300.13°)
OKLaboklab(46.16% -0.0002 -0.2159)
OKLCHoklch(46.16% 0.216 269.9)
XYZxyz(14.1891, 8.7498, 59.3216)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3040CE #CEBE30
analogous
#308FCE #3040CE #6F30CE
triadic
#3040CE #CE3040 #40CE30
tetradic
#3040CE #CE308F #CEBE30 #30CE6F
square
#3040CE #CE308F #CEBE30 #30CE6F
split-complementary
#3040CE #CE6F30 #8FCE30
monochromatic
#19216B #24319C #3040CE #616DDA #939BE6

Accessibility & contrast

On white

7.64
#3040CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#3040CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3040CE
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3040CE#FFFFFF#000000##FFFFFF
##3040CE1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD2
Deuteranopia (green-blind)
#004CCB
Tritanopia (blue-blind)
#006782
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3040ce;
/* rgb */ color: rgb(48, 64, 206);
/* oklch */ color: oklch(46.2% 0.216 269.9);
Tailwind
colors: {
  custom: {
    50: '#8275de',
    500: '#3040ce',
    950: '#000000',
  },
}
SCSS
$custom: #3040ce;
$custom-light: #8275de;
$custom-dark: #000000;
JSON
{
  "hex": "#3040ce",
  "rgb": {
    "r": 48,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 233.924,
    "s": 62.205,
    "l": 49.804
  },
  "oklch": {
    "l": 0.4616,
    "c": 0.21586,
    "h": 269.9
  },
  "luminance": 0.08751
}

Semantic roles & 50–950 ramp

primary
#3040CE
secondary
#D1C989
accent
#D543E5
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3040CE

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

Preview Lab → · Contrast checker → · Palette generator →

#3040CE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva