#3A38BB#3A38BB

#3A38BB is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.6% C 0.198 H 275.1°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#3A38BB
RGBrgb(58, 56, 187)
HSLhsl(241, 54%, 48%)
HSVhsv(241, 70%, 73%)
CMYKcmyk(69%, 70.1%, 0%, 26.7%)
CIE-LABlab(32.51, 42.60, -68.34)
CIE-LCHlch(32.51, 80.53, 301.94°)
OKLaboklab(43.61% 0.0175 -0.1975)
OKLCHoklch(43.61% 0.198 275.1)
XYZxyz(12.1258, 7.3146, 47.7769)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A38BB #B9BB38
analogous
#3877BB #3A38BB #7B38BB
triadic
#3A38BB #BB3A38 #38BB3A
tetradic
#3A38BB #BB3877 #B9BB38 #38BB7B
square
#3A38BB #BB3877 #B9BB38 #38BB7B
split-complementary
#3A38BB #BB7B38 #77BB38
monochromatic
#1D1C5D #2B2A8C #3A38BB #6261D0 #9190DE

Accessibility & contrast

On white

8.53
#3A38BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#3A38BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A38BB
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A38BB#FFFFFF#000000##FFFFFF
##3A38BB1.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BF
Deuteranopia (green-blind)
#0046B9
Tritanopia (blue-blind)
#005C75
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3a38bb;
/* rgb */ color: rgb(58, 56, 187);
/* oklch */ color: oklch(43.6% 0.198 275.1);
Tailwind
colors: {
  custom: {
    50: '#8270d1',
    500: '#3a38bb',
    950: '#000000',
  },
}
SCSS
$custom: #3a38bb;
$custom-light: #8270d1;
$custom-dark: #000000;
JSON
{
  "hex": "#3a38bb",
  "rgb": {
    "r": 58,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 240.916,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.43614,
    "c": 0.19824,
    "h": 275.1
  },
  "luminance": 0.07316
}

Semantic roles & 50–950 ramp

primary
#3A38BB
secondary
#C7C886
accent
#DD4BDB
background
#F8F6FD
surface
#F0ECFA
border
#CBC7D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #3A38BB

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

Preview Lab → · Contrast checker → · Palette generator →

#3A38BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva