#2A2BBB#2A2BBB

#2A2BBB is a dark, highly saturated blue. Relative luminance 0.058; OKLCH L 40.8% C 0.215 H 271.4°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#2A2BBB
RGBrgb(42, 43, 187)
HSLhsl(240, 63%, 45%)
HSVhsv(240, 78%, 73%)
CMYKcmyk(77.5%, 77%, 0%, 26.7%)
CIE-LABlab(28.92, 48.45, -74.30)
CIE-LCHlch(28.92, 88.70, 303.11°)
OKLaboklab(40.8% 0.0051 -0.2151)
OKLCHoklch(40.8% 0.215 271.4)
XYZxyz(10.7853, 5.8067, 47.5565)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2BBB #BBBA2A
analogous
#2A74BB #2A2BBB #712ABB
triadic
#2A2BBB #BB2A2B #2BBB2A
tetradic
#2A2BBB #BB2A74 #BBBA2A #2ABB71
square
#2A2BBB #BB2A74 #BBBA2A #2ABB71
split-complementary
#2A2BBB #BB712A #74BB2A
monochromatic
#141457 #1F2089 #2A2BBB #4C4CD7 #7D7EE2

Accessibility & contrast

On white

9.72
#2A2BBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2A2BBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2BBB
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2BBB#FFFFFF#000000##FFFFFF
##2A2BBB1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBF
Deuteranopia (green-blind)
#003DB9
Tritanopia (blue-blind)
#005672
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a2bbb;
/* rgb */ color: rgb(42, 43, 187);
/* oklch */ color: oklch(40.8% 0.215 271.4);
Tailwind
colors: {
  custom: {
    50: '#7d67d1',
    500: '#2a2bbb',
    950: '#000000',
  },
}
SCSS
$custom: #2a2bbb;
$custom-light: #7d67d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2bbb",
  "rgb": {
    "r": 42,
    "g": 43,
    "b": 187
  },
  "hsl": {
    "h": 239.586,
    "s": 63.319,
    "l": 44.902
  },
  "oklch": {
    "l": 0.40799,
    "c": 0.21517,
    "h": 271.4
  },
  "luminance": 0.05808
}

Semantic roles & 50–950 ramp

primary
#2A2BBB
secondary
#CACA76
accent
#E541E6
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #2A2BBB

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

Preview Lab → · Contrast checker → · Palette generator →

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