#838DF2#838DF2

#838DF2 is a light, vivid blue. Relative luminance 0.303; OKLCH L 68.0% C 0.148 H 277.4°. Best body text is #000000 at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#838DF2
RGBrgb(131, 141, 242)
HSLhsl(235, 81%, 73%)
HSVhsv(235, 46%, 95%)
CMYKcmyk(45.9%, 41.7%, 0%, 5.1%)
CIE-LABlab(61.90, 22.30, -51.98)
CIE-LCHlch(61.90, 56.56, 293.21°)
OKLaboklab(68% 0.0191 -0.1471)
OKLCHoklch(68% 0.148 277.4)
XYZxyz(34.9071, 30.2840, 87.9933)
Luminance0.3029 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838DF2 #F2E883
analogous
#83C4F2 #838DF2 #B083F2
triadic
#838DF2 #F2838D #8DF283
tetradic
#838DF2 #F283C4 #F2E883 #83F2B0
square
#838DF2 #F283C4 #F2E883 #83F2B0
split-complementary
#838DF2 #F2B083 #C4F283
monochromatic
#182AE3 #4C5AEC #838DF2 #BAC0F8 #E3E6FC

Accessibility & contrast

On white

2.98
#838DF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.06
#838DF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #838DF2
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##838DF2#FFFFFF#000000##000000
##838DF21.002.987.067.06
#FFFFFF2.981.0021.0021.00
#0000007.0621.001.001.00
##0000007.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#669AF6
Deuteranopia (green-blind)
#5D91F0
Tritanopia (blue-blind)
#5BA2B4
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #838df2;
/* rgb */ color: rgb(131, 141, 242);
/* oklch */ color: oklch(68.0% 0.148 277.4);
Tailwind
colors: {
  custom: {
    50: '#acaef7',
    500: '#838df2',
    950: '#000000',
  },
}
SCSS
$custom: #838df2;
$custom-light: #acaef7;
$custom-dark: #000000;
JSON
{
  "hex": "#838df2",
  "rgb": {
    "r": 131,
    "g": 141,
    "b": 242
  },
  "hsl": {
    "h": 234.595,
    "s": 81.022,
    "l": 73.137
  },
  "oklch": {
    "l": 0.68,
    "c": 0.1483,
    "h": 277.4
  },
  "luminance": 0.30286
}

Semantic roles & 50–950 ramp

primary
#838DF2
secondary
#F4F1D7
accent
#CA08DD
background
#FBFAFF
surface
#F6F4FF
border
#D0CED7
text
#111017
muted
#807F85

Preview Lab

Preview with #838DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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