#3B42AC#3B42AC

#3B42AC is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.0% C 0.167 H 274.4°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#3B42AC
RGBrgb(59, 66, 172)
HSLhsl(236, 49%, 45%)
HSVhsv(236, 66%, 67%)
CMYKcmyk(65.7%, 61.6%, 0%, 32.5%)
CIE-LABlab(33.57, 31.43, -57.70)
CIE-LCHlch(33.57, 65.70, 298.58°)
OKLaboklab(44% 0.0127 -0.1662)
OKLCHoklch(44% 0.167 274.4)
XYZxyz(11.1958, 7.8038, 39.9380)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B42AC #ACA53B
analogous
#3B7BAC #3B42AC #6C3BAC
triadic
#3B42AC #AC3B42 #42AC3B
tetradic
#3B42AC #AC3B7B #ACA53B #3BAC6C
square
#3B42AC #AC3B7B #ACA53B #3BAC6C
split-complementary
#3B42AC #AC6C3B #7BAC3B
monochromatic
#1C1F51 #2B317E #3B42AC #5D63C7 #8A8FD7

Accessibility & contrast

On white

8.20
#3B42AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#3B42AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B42AC
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B42AC#FFFFFF#000000##FFFFFF
##3B42AC1.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AF
Deuteranopia (green-blind)
#004AAA
Tritanopia (blue-blind)
#005C70
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3b42ac;
/* rgb */ color: rgb(59, 66, 172);
/* oklch */ color: oklch(44.0% 0.167 274.4);
Tailwind
colors: {
  custom: {
    50: '#7e76c6',
    500: '#3b42ac',
    950: '#000000',
  },
}
SCSS
$custom: #3b42ac;
$custom-light: #7e76c6;
$custom-dark: #000000;
JSON
{
  "hex": "#3b42ac",
  "rgb": {
    "r": 59,
    "g": 66,
    "b": 172
  },
  "hsl": {
    "h": 236.283,
    "s": 48.918,
    "l": 45.294
  },
  "oklch": {
    "l": 0.43995,
    "c": 0.16672,
    "h": 274.4
  },
  "luminance": 0.07805
}

Semantic roles & 50–950 ramp

primary
#3B42AC
secondary
#C1BD81
accent
#D04FD8
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3B42AC

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

Preview Lab → · Contrast checker → · Palette generator →

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