#3A3CAF#3A3CAF

#3A3CAF is a dark, vivid blue. Relative luminance 0.072; OKLCH L 43.1% C 0.178 H 275.2°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#3A3CAF
RGBrgb(58, 60, 175)
HSLhsl(239, 50%, 46%)
HSVhsv(239, 67%, 69%)
CMYKcmyk(66.9%, 65.7%, 0%, 31.4%)
CIE-LABlab(32.31, 36.12, -61.54)
CIE-LCHlch(32.31, 71.36, 300.41°)
OKLaboklab(43.14% 0.0162 -0.1776)
OKLCHoklch(43.14% 0.178 275.2)
XYZxyz(11.0961, 7.2254, 41.3590)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3CAF #AFAD3A
analogous
#3A77AF #3A3CAF #723AAF
triadic
#3A3CAF #AF3A3C #3CAF3A
tetradic
#3A3CAF #AF3A77 #AFAD3A #3AAF72
square
#3A3CAF #AF3A77 #AFAD3A #3AAF72
split-complementary
#3A3CAF #AF723A #77AF3A
monochromatic
#1C1C53 #2B2C81 #3A3CAF #5D5FC9 #8B8CD9

Accessibility & contrast

On white

8.59
#3A3CAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#3A3CAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3CAF
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3CAF#FFFFFF#000000##FFFFFF
##3A3CAF1.008.592.458.59
#FFFFFF8.591.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B3
Deuteranopia (green-blind)
#0047AD
Tritanopia (blue-blind)
#005A70
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3a3caf;
/* rgb */ color: rgb(58, 60, 175);
/* oklch */ color: oklch(43.1% 0.178 275.2);
Tailwind
colors: {
  custom: {
    50: '#7f72c8',
    500: '#3a3caf',
    950: '#000000',
  },
}
SCSS
$custom: #3a3caf;
$custom-light: #7f72c8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3caf",
  "rgb": {
    "r": 58,
    "g": 60,
    "b": 175
  },
  "hsl": {
    "h": 238.974,
    "s": 50.215,
    "l": 45.686
  },
  "oklch": {
    "l": 0.43136,
    "c": 0.17831,
    "h": 275.2
  },
  "luminance": 0.07226
}

Semantic roles & 50–950 ramp

primary
#3A3CAF
secondary
#C3C282
accent
#D74EDA
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3A3CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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