#2A3AA3#2A3AA3

#2A3AA3 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.7% C 0.169 H 270.2°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#2A3AA3
RGBrgb(42, 58, 163)
HSLhsl(232, 59%, 40%)
HSVhsv(232, 74%, 64%)
CMYKcmyk(74.2%, 64.4%, 0%, 36.1%)
CIE-LABlab(29.82, 31.05, -58.47)
CIE-LCHlch(29.82, 66.20, 297.97°)
OKLaboklab(40.73% 0.0006 -0.169)
OKLCHoklch(40.73% 0.169 270.2)
XYZxyz(9.0765, 6.1617, 35.3542)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3AA3 #A3932A
analogous
#2A76A3 #2A3AA3 #562AA3
triadic
#2A3AA3 #A32A3A #3AA32A
tetradic
#2A3AA3 #A32A76 #A3932A #2AA356
square
#2A3AA3 #A32A76 #A3932A #2AA356
split-complementary
#2A3AA3 #A3562A #76A32A
monochromatic
#111742 #1D2972 #2A3AA3 #3D50CD #6E7CDA

Accessibility & contrast

On white

9.41
#2A3AA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2A3AA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3AA3
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3AA3#FFFFFF#000000##FFFFFF
##2A3AA31.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA6
Deuteranopia (green-blind)
#0041A1
Tritanopia (blue-blind)
#005569
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a3aa3;
/* rgb */ color: rgb(42, 58, 163);
/* oklch */ color: oklch(40.7% 0.169 270.2);
Tailwind
colors: {
  custom: {
    50: '#7670bf',
    500: '#2a3aa3',
    950: '#000000',
  },
}
SCSS
$custom: #2a3aa3;
$custom-light: #7670bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3aa3",
  "rgb": {
    "r": 42,
    "g": 58,
    "b": 163
  },
  "hsl": {
    "h": 232.066,
    "s": 59.024,
    "l": 40.196
  },
  "oklch": {
    "l": 0.40728,
    "c": 0.16898,
    "h": 270.2
  },
  "luminance": 0.06163
}

Semantic roles & 50–950 ramp

primary
#2A3AA3
secondary
#C0B568
accent
#CE46E2
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2A3AA3

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

Preview Lab → · Contrast checker → · Palette generator →

#2A3AA3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva