#2A2BA4#2A2BA4

#2A2BA4 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.3% C 0.187 H 272.8°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#2A2BA4
RGBrgb(42, 43, 164)
HSLhsl(240, 59%, 40%)
HSVhsv(240, 74%, 64%)
CMYKcmyk(74.4%, 73.8%, 0%, 35.7%)
CIE-LABlab(26.45, 40.79, -64.61)
CIE-LCHlch(26.45, 76.41, 302.26°)
OKLaboklab(38.32% 0.0093 -0.187)
OKLCHoklch(38.32% 0.187 272.8)
XYZxyz(8.5173, 4.8995, 35.6116)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2BA4 #A4A32A
analogous
#2A68A4 #2A2BA4 #662AA4
triadic
#2A2BA4 #A42A2B #2BA42A
tetradic
#2A2BA4 #A42A68 #A4A32A #2AA466
square
#2A2BA4 #A42A68 #A4A32A #2AA466
split-complementary
#2A2BA4 #A4662A #68A42A
monochromatic
#111143 #1E1E73 #2A2BA4 #3E3FCD #6E6FDA

Accessibility & contrast

On white

10.61
#2A2BA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2A2BA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2BA4
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2BA4#FFFFFF#000000##FFFFFF
##2A2BA41.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A8
Deuteranopia (green-blind)
#0039A2
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a2ba4;
/* rgb */ color: rgb(42, 43, 164);
/* oklch */ color: oklch(38.3% 0.187 272.8);
Tailwind
colors: {
  custom: {
    50: '#7766c0',
    500: '#2a2ba4',
    950: '#000000',
  },
}
SCSS
$custom: #2a2ba4;
$custom-light: #7766c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2ba4",
  "rgb": {
    "r": 42,
    "g": 43,
    "b": 164
  },
  "hsl": {
    "h": 239.508,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38316,
    "c": 0.18719,
    "h": 272.8
  },
  "luminance": 0.049
}

Semantic roles & 50–950 ramp

primary
#2A2BA4
secondary
#C1C069
accent
#E145E2
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A2BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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