#2A2BA7#2A2BA7

#2A2BA7 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.6% C 0.191 H 272.6°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#2A2BA7
RGBrgb(42, 43, 167)
HSLhsl(240, 60%, 41%)
HSVhsv(240, 75%, 65%)
CMYKcmyk(74.9%, 74.3%, 0%, 34.5%)
CIE-LABlab(26.76, 41.81, -65.91)
CIE-LCHlch(26.76, 78.05, 302.39°)
OKLaboklab(38.63% 0.0088 -0.1907)
OKLCHoklch(38.63% 0.191 272.6)
XYZxyz(8.7914, 5.0091, 37.0553)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2BA7 #A7A62A
analogous
#2A69A7 #2A2BA7 #672AA7
triadic
#2A2BA7 #A72A2B #2BA72A
tetradic
#2A2BA7 #A72A69 #A7A62A #2AA767
square
#2A2BA7 #A72A69 #A7A62A #2AA767
split-complementary
#2A2BA7 #A7672A #69A72A
monochromatic
#111245 #1E1E76 #2A2BA7 #3F41CF #7071DB

Accessibility & contrast

On white

10.49
#2A2BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2A2BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2BA7
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2BA7#FFFFFF#000000##FFFFFF
##2A2BA71.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AB
Deuteranopia (green-blind)
#0039A5
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a2ba7;
/* rgb */ color: rgb(42, 43, 167);
/* oklch */ color: oklch(38.6% 0.191 272.6);
Tailwind
colors: {
  custom: {
    50: '#7866c2',
    500: '#2a2ba7',
    950: '#000000',
  },
}
SCSS
$custom: #2a2ba7;
$custom-light: #7866c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2ba7",
  "rgb": {
    "r": 42,
    "g": 43,
    "b": 167
  },
  "hsl": {
    "h": 239.52,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.38634,
    "c": 0.19093,
    "h": 272.6
  },
  "luminance": 0.0501
}

Semantic roles & 50–950 ramp

primary
#2A2BA7
secondary
#C2C16B
accent
#E245E3
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #2A2BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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