#2A3AA6#2A3AA6

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

Color values

HEX#2A3AA6
RGBrgb(42, 58, 166)
HSLhsl(232, 60%, 41%)
HSVhsv(232, 75%, 65%)
CMYKcmyk(74.7%, 65.1%, 0%, 34.9%)
CIE-LABlab(30.08, 32.16, -59.84)
CIE-LCHlch(30.08, 67.93, 298.25°)
OKLaboklab(41.01% 0.0004 -0.173)
OKLCHoklch(41.01% 0.173 270.1)
XYZxyz(9.3485, 6.2705, 36.7866)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3AA6 #A6962A
analogous
#2A78A6 #2A3AA6 #582AA6
triadic
#2A3AA6 #A62A3A #3AA62A
tetradic
#2A3AA6 #A62A78 #A6962A #2AA658
square
#2A3AA6 #A62A78 #A6962A #2AA658
split-complementary
#2A3AA6 #A6582A #78A62A
monochromatic
#111844 #1E2975 #2A3AA6 #3F51CE #707DDB

Accessibility & contrast

On white

9.32
#2A3AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#2A3AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3AA6
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3AA6#FFFFFF#000000##FFFFFF
##2A3AA61.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA9
Deuteranopia (green-blind)
#0041A4
Tritanopia (blue-blind)
#00566A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a3aa6;
/* rgb */ color: rgb(42, 58, 166);
/* oklch */ color: oklch(41.0% 0.173 270.1);
Tailwind
colors: {
  custom: {
    50: '#7770c1',
    500: '#2a3aa6',
    950: '#000000',
  },
}
SCSS
$custom: #2a3aa6;
$custom-light: #7770c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3aa6",
  "rgb": {
    "r": 42,
    "g": 58,
    "b": 166
  },
  "hsl": {
    "h": 232.258,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41008,
    "c": 0.173,
    "h": 270.1
  },
  "luminance": 0.06272
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A3AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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