#2A3AAB#2A3AAB

#2A3AAB is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.5% C 0.180 H 270.0°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#2A3AAB
RGBrgb(42, 58, 171)
HSLhsl(233, 61%, 42%)
HSVhsv(233, 75%, 67%)
CMYKcmyk(75.4%, 66.1%, 0%, 32.9%)
CIE-LABlab(30.54, 33.99, -62.10)
CIE-LCHlch(30.54, 70.79, 298.69°)
OKLaboklab(41.48% 0.0001 -0.1796)
OKLCHoklch(41.48% 0.18 270)
XYZxyz(9.8161, 6.4576, 39.2493)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3AAB #AB9B2A
analogous
#2A7BAB #2A3AAB #5B2AAB
triadic
#2A3AAB #AB2A3A #3AAB2A
tetradic
#2A3AAB #AB2A7B #AB9B2A #2AAB5B
square
#2A3AAB #AB2A7B #AB9B2A #2AAB5B
split-complementary
#2A3AAB #AB5B2A #7BAB2A
monochromatic
#121949 #1E297A #2A3AAB #4253D1 #7380DD

Accessibility & contrast

On white

9.16
#2A3AAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2A3AAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3AAB
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3AAB#FFFFFF#000000##FFFFFF
##2A3AAB1.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAF
Deuteranopia (green-blind)
#0042A9
Tritanopia (blue-blind)
#00586D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a3aab;
/* rgb */ color: rgb(42, 58, 171);
/* oklch */ color: oklch(41.5% 0.180 270.0);
Tailwind
colors: {
  custom: {
    50: '#7870c5',
    500: '#2a3aab',
    950: '#000000',
  },
}
SCSS
$custom: #2a3aab;
$custom-light: #7870c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3aab",
  "rgb": {
    "r": 42,
    "g": 58,
    "b": 171
  },
  "hsl": {
    "h": 232.558,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41479,
    "c": 0.17961,
    "h": 270
  },
  "luminance": 0.06459
}

Semantic roles & 50–950 ramp

primary
#2A3AAB
secondary
#C4B96D
accent
#D044E4
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2A3AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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