#3A38B8#3A38B8

#3A38B8 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 43.3% C 0.194 H 275.3°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#3A38B8
RGBrgb(58, 56, 184)
HSLhsl(241, 53%, 47%)
HSVhsv(241, 70%, 72%)
CMYKcmyk(68.5%, 69.6%, 0%, 27.8%)
CIE-LABlab(32.23, 41.60, -67.03)
CIE-LCHlch(32.23, 78.89, 301.83°)
OKLaboklab(43.33% 0.0179 -0.1936)
OKLCHoklch(43.33% 0.194 275.3)
XYZxyz(11.8080, 7.1875, 46.1032)
Luminance0.0719 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A38B8 #B6B838
analogous
#3876B8 #3A38B8 #7A38B8
triadic
#3A38B8 #B83A38 #38B83A
tetradic
#3A38B8 #B83876 #B6B838 #38B87A
square
#3A38B8 #B83876 #B6B838 #38B87A
split-complementary
#3A38B8 #B87A38 #76B838
monochromatic
#1C1B5A #2B2A89 #3A38B8 #615FCE #8F8EDD

Accessibility & contrast

On white

8.61
#3A38B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#3A38B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A38B8
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A38B8#FFFFFF#000000##FFFFFF
##3A38B81.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BC
Deuteranopia (green-blind)
#0046B6
Tritanopia (blue-blind)
#005B74
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3a38b8;
/* rgb */ color: rgb(58, 56, 184);
/* oklch */ color: oklch(43.3% 0.194 275.3);
Tailwind
colors: {
  custom: {
    50: '#8170ce',
    500: '#3a38b8',
    950: '#000000',
  },
}
SCSS
$custom: #3a38b8;
$custom-light: #8170ce;
$custom-dark: #000000;
JSON
{
  "hex": "#3a38b8",
  "rgb": {
    "r": 58,
    "g": 56,
    "b": 184
  },
  "hsl": {
    "h": 240.938,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.43325,
    "c": 0.19447,
    "h": 275.3
  },
  "luminance": 0.07189
}

Semantic roles & 50–950 ramp

primary
#3A38B8
secondary
#C6C785
accent
#DD4BDA
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #3A38B8

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

Preview Lab → · Contrast checker → · Palette generator →

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