#2A3BA6#2A3BA6

#2A3BA6 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.2% C 0.172 H 269.9°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#2A3BA6
RGBrgb(42, 59, 166)
HSLhsl(232, 60%, 41%)
HSVhsv(232, 75%, 65%)
CMYKcmyk(74.7%, 64.5%, 0%, 34.9%)
CIE-LABlab(30.33, 31.51, -59.43)
CIE-LCHlch(30.33, 67.27, 297.93°)
OKLaboklab(41.19% -0.0002 -0.1718)
OKLCHoklch(41.19% 0.172 269.9)
XYZxyz(9.3994, 6.3724, 36.8036)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3BA6 #A6952A
analogous
#2A79A6 #2A3BA6 #572AA6
triadic
#2A3BA6 #A62A3B #3BA62A
tetradic
#2A3BA6 #A62A79 #A6952A #2AA657
square
#2A3BA6 #A62A79 #A6952A #2AA657
split-complementary
#2A3BA6 #A6572A #79A62A
monochromatic
#111844 #1E2A75 #2A3BA6 #3F53CE #707EDB

Accessibility & contrast

On white

9.23
#2A3BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2A3BA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3BA6
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3BA6#FFFFFF#000000##FFFFFF
##2A3BA61.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA9
Deuteranopia (green-blind)
#0042A4
Tritanopia (blue-blind)
#00576B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a3ba6;
/* rgb */ color: rgb(42, 59, 166);
/* oklch */ color: oklch(41.2% 0.172 269.9);
Tailwind
colors: {
  custom: {
    50: '#7671c1',
    500: '#2a3ba6',
    950: '#000000',
  },
}
SCSS
$custom: #2a3ba6;
$custom-light: #7671c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3ba6",
  "rgb": {
    "r": 42,
    "g": 59,
    "b": 166
  },
  "hsl": {
    "h": 231.774,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.4119,
    "c": 0.1718,
    "h": 269.9
  },
  "luminance": 0.06373
}

Semantic roles & 50–950 ramp

primary
#2A3BA6
secondary
#C2B66A
accent
#CD45E3
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2A3BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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