#3A3F8A#3A3F8A

#3A3F8A is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.6% C 0.123 H 276.6°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#3A3F8A
RGBrgb(58, 63, 138)
HSLhsl(236, 41%, 38%)
HSVhsv(236, 58%, 54%)
CMYKcmyk(58%, 54.3%, 0%, 45.9%)
CIE-LABlab(30.13, 21.27, -42.65)
CIE-LCHlch(30.13, 47.66, 296.51°)
OKLaboklab(40.6% 0.0141 -0.122)
OKLCHoklch(40.6% 0.123 276.6)
XYZxyz(8.1084, 6.2890, 24.8264)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3F8A #8A853A
analogous
#3A678A #3A3F8A #5D3A8A
triadic
#3A3F8A #8A3A3F #3F8A3A
tetradic
#3A3F8A #8A3A67 #8A853A #3A8A5D
square
#3A3F8A #8A3A67 #8A853A #3A8A5D
split-complementary
#3A3F8A #8A5D3A #678A3A
monochromatic
#161834 #282B5F #3A3F8A #4D53B4 #787DC6

Accessibility & contrast

On white

9.30
#3A3F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#3A3F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3F8A
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3F8A#FFFFFF#000000##FFFFFF
##3A3F8A1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134A8D
Deuteranopia (green-blind)
#014488
Tritanopia (blue-blind)
#0D505E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #3a3f8a;
/* rgb */ color: rgb(58, 63, 138);
/* oklch */ color: oklch(40.6% 0.123 276.6);
Tailwind
colors: {
  custom: {
    50: '#7874ad',
    500: '#3a3f8a',
    950: '#000000',
  },
}
SCSS
$custom: #3a3f8a;
$custom-light: #7874ad;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3f8a",
  "rgb": {
    "r": 58,
    "g": 63,
    "b": 138
  },
  "hsl": {
    "h": 236.25,
    "s": 40.816,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40601,
    "c": 0.12285,
    "h": 276.6
  },
  "luminance": 0.0629
}

Semantic roles & 50–950 ramp

primary
#3A3F8A
secondary
#B0AC70
accent
#C957D1
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #3A3F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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