#3A45A2#3A45A2

#3A45A2 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.7% C 0.149 H 273.4°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#3A45A2
RGBrgb(58, 69, 162)
HSLhsl(234, 47%, 43%)
HSVhsv(234, 64%, 64%)
CMYKcmyk(64.2%, 57.4%, 0%, 36.5%)
CIE-LABlab(33.49, 25.79, -51.85)
CIE-LCHlch(33.49, 57.91, 296.45°)
OKLaboklab(43.67% 0.0089 -0.149)
OKLCHoklch(43.67% 0.149 273.4)
XYZxyz(10.3925, 7.7635, 35.1263)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A45A2 #A2973A
analogous
#3A79A2 #3A45A2 #633AA2
triadic
#3A45A2 #A23A45 #45A23A
tetradic
#3A45A2 #A23A79 #A2973A #3AA263
square
#3A45A2 #A23A79 #A2973A #3AA263
split-complementary
#3A45A2 #A2633A #79A23A
monochromatic
#1A1F48 #2A3275 #3A45A2 #5762C3 #848CD3

Accessibility & contrast

On white

8.23
#3A45A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#3A45A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A45A2
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A45A2#FFFFFF#000000##FFFFFF
##3A45A21.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A5
Deuteranopia (green-blind)
#004AA0
Tritanopia (blue-blind)
#005B6C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3a45a2;
/* rgb */ color: rgb(58, 69, 162);
/* oklch */ color: oklch(43.7% 0.149 273.4);
Tailwind
colors: {
  custom: {
    50: '#7c78be',
    500: '#3a45a2',
    950: '#000000',
  },
}
SCSS
$custom: #3a45a2;
$custom-light: #7c78be;
$custom-dark: #000000;
JSON
{
  "hex": "#3a45a2",
  "rgb": {
    "r": 58,
    "g": 69,
    "b": 162
  },
  "hsl": {
    "h": 233.654,
    "s": 47.273,
    "l": 43.137
  },
  "oklch": {
    "l": 0.43669,
    "c": 0.14931,
    "h": 273.4
  },
  "luminance": 0.07764
}

Semantic roles & 50–950 ramp

primary
#3A45A2
secondary
#BDB67B
accent
#C951D7
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #3A45A2

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

Preview Lab → · Contrast checker → · Palette generator →

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