#2A2BA6#2A2BA6

#2A2BA6 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.5% C 0.190 H 272.7°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#2A2BA6
RGBrgb(42, 43, 166)
HSLhsl(240, 60%, 41%)
HSVhsv(240, 75%, 65%)
CMYKcmyk(74.7%, 74.1%, 0%, 34.9%)
CIE-LABlab(26.66, 41.47, -65.48)
CIE-LCHlch(26.66, 77.51, 302.35°)
OKLaboklab(38.53% 0.0089 -0.1895)
OKLCHoklch(38.53% 0.19 272.7)
XYZxyz(8.6993, 4.9723, 36.5703)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2BA6 #A6A52A
analogous
#2A69A6 #2A2BA6 #672AA6
triadic
#2A2BA6 #A62A2B #2BA62A
tetradic
#2A2BA6 #A62A69 #A6A52A #2AA667
square
#2A2BA6 #A62A69 #A6A52A #2AA667
split-complementary
#2A2BA6 #A6672A #69A62A
monochromatic
#111244 #1E1E75 #2A2BA6 #3F40CE #7071DB

Accessibility & contrast

On white

10.53
#2A2BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2A2BA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2BA6
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2BA6#FFFFFF#000000##FFFFFF
##2A2BA61.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AA
Deuteranopia (green-blind)
#0039A4
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a2ba6;
/* rgb */ color: rgb(42, 43, 166);
/* oklch */ color: oklch(38.5% 0.190 272.7);
Tailwind
colors: {
  custom: {
    50: '#7866c2',
    500: '#2a2ba6',
    950: '#000000',
  },
}
SCSS
$custom: #2a2ba6;
$custom-light: #7866c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2ba6",
  "rgb": {
    "r": 42,
    "g": 43,
    "b": 166
  },
  "hsl": {
    "h": 239.516,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.38528,
    "c": 0.18969,
    "h": 272.7
  },
  "luminance": 0.04973
}

Semantic roles & 50–950 ramp

primary
#2A2BA6
secondary
#C2C16A
accent
#E245E3
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A2BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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