#838CF2#838CF2

#838CF2 is a light, vivid blue. Relative luminance 0.300; OKLCH L 67.8% C 0.150 H 277.8°. Best body text is #000000 at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#838CF2
RGBrgb(131, 140, 242)
HSLhsl(235, 81%, 73%)
HSVhsv(235, 46%, 95%)
CMYKcmyk(45.9%, 42.1%, 0%, 5.1%)
CIE-LABlab(61.65, 22.88, -52.38)
CIE-LCHlch(61.65, 57.16, 293.60°)
OKLaboklab(67.81% 0.0203 -0.1482)
OKLCHoklch(67.81% 0.15 277.8)
XYZxyz(34.7603, 29.9904, 87.9443)
Luminance0.2999 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838CF2 #F2E983
analogous
#83C3F2 #838CF2 #B183F2
triadic
#838CF2 #F2838C #8CF283
tetradic
#838CF2 #F283C3 #F2E983 #83F2B1
square
#838CF2 #F283C3 #F2E983 #83F2B1
split-complementary
#838CF2 #F2B183 #C3F283
monochromatic
#1828E3 #4C59EC #838CF2 #BABFF8 #E3E5FC

Accessibility & contrast

On white

3.00
#838CF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

7.00
#838CF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #838CF2
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##838CF2#FFFFFF#000000##000000
##838CF21.003.007.007.00
#FFFFFF3.001.0021.0021.00
#0000007.0021.001.001.00
##0000007.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6499F6
Deuteranopia (green-blind)
#5C91F0
Tritanopia (blue-blind)
#5CA1B3
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #838cf2;
/* rgb */ color: rgb(131, 140, 242);
/* oklch */ color: oklch(67.8% 0.150 277.8);
Tailwind
colors: {
  custom: {
    50: '#acadf7',
    500: '#838cf2',
    950: '#000000',
  },
}
SCSS
$custom: #838cf2;
$custom-light: #acadf7;
$custom-dark: #000000;
JSON
{
  "hex": "#838cf2",
  "rgb": {
    "r": 131,
    "g": 140,
    "b": 242
  },
  "hsl": {
    "h": 235.135,
    "s": 81.022,
    "l": 73.137
  },
  "oklch": {
    "l": 0.67807,
    "c": 0.14963,
    "h": 277.8
  },
  "luminance": 0.29992
}

Semantic roles & 50–950 ramp

primary
#838CF2
secondary
#F4F2D7
accent
#CC08DD
background
#FBFAFF
surface
#F6F4FF
border
#D0CED7
text
#111017
muted
#807F85

Preview Lab

Preview with #838CF2

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

Preview Lab → · Contrast checker → · Palette generator →

#838CF2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva