#2A3AA7#2A3AA7

#2A3AA7 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.1% C 0.174 H 270.1°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#2A3AA7
RGBrgb(42, 58, 167)
HSLhsl(232, 60%, 41%)
HSVhsv(232, 75%, 65%)
CMYKcmyk(74.9%, 65.3%, 0%, 34.5%)
CIE-LABlab(30.18, 32.53, -60.29)
CIE-LCHlch(30.18, 68.51, 298.34°)
OKLaboklab(41.1% 0.0004 -0.1743)
OKLCHoklch(41.1% 0.174 270.1)
XYZxyz(9.4406, 6.3074, 37.2716)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3AA7 #A7972A
analogous
#2A78A7 #2A3AA7 #582AA7
triadic
#2A3AA7 #A72A3A #3AA72A
tetradic
#2A3AA7 #A72A78 #A7972A #2AA758
square
#2A3AA7 #A72A78 #A7972A #2AA758
split-complementary
#2A3AA7 #A7582A #78A72A
monochromatic
#111845 #1E2976 #2A3AA7 #3F52CF #707EDB

Accessibility & contrast

On white

9.29
#2A3AA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2A3AA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3AA7
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3AA7#FFFFFF#000000##FFFFFF
##2A3AA71.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAA
Deuteranopia (green-blind)
#0041A5
Tritanopia (blue-blind)
#00576B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a3aa7;
/* rgb */ color: rgb(42, 58, 167);
/* oklch */ color: oklch(41.1% 0.174 270.1);
Tailwind
colors: {
  custom: {
    50: '#7770c2',
    500: '#2a3aa7',
    950: '#000000',
  },
}
SCSS
$custom: #2a3aa7;
$custom-light: #7770c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3aa7",
  "rgb": {
    "r": 42,
    "g": 58,
    "b": 167
  },
  "hsl": {
    "h": 232.32,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41101,
    "c": 0.17433,
    "h": 270.1
  },
  "luminance": 0.06308
}

Semantic roles & 50–950 ramp

primary
#2A3AA7
secondary
#C2B76B
accent
#CF45E3
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2A3AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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