#2A2B7B#2A2B7B

#2A2B7B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.2% C 0.133 H 276.3°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#2A2B7B
RGBrgb(42, 43, 123)
HSLhsl(239, 49%, 32%)
HSVhsv(239, 66%, 48%)
CMYKcmyk(65.9%, 65%, 0%, 51.8%)
CIE-LABlab(22.48, 26.28, -45.73)
CIE-LCHlch(22.48, 52.74, 299.89°)
OKLaboklab(34.24% 0.0145 -0.1317)
OKLCHoklch(34.24% 0.133 276.3)
XYZxyz(5.3927, 3.6496, 19.1553)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2B7B #7B7A2A
analogous
#2A547B #2A2B7B #512A7B
triadic
#2A2B7B #7B2A2B #2B7B2A
tetradic
#2A2B7B #7B2A54 #7B7A2A #2A7B51
square
#2A2B7B #7B2A54 #7B7A2A #2A7B51
split-complementary
#2A2B7B #7B512A #547B2A
monochromatic
#0B0B20 #1A1B4D #2A2B7B #3A3BA9 #595AC6

Accessibility & contrast

On white

12.14
#2A2B7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2A2B7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2B7B
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2B7B#FFFFFF#000000##FFFFFF
##2A2B7B1.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397E
Deuteranopia (green-blind)
#003279
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a2b7b;
/* rgb */ color: rgb(42, 43, 123);
/* oklch */ color: oklch(34.2% 0.133 276.3);
Tailwind
colors: {
  custom: {
    50: '#6e64a2',
    500: '#2a2b7b',
    950: '#000000',
  },
}
SCSS
$custom: #2a2b7b;
$custom-light: #6e64a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2b7b",
  "rgb": {
    "r": 42,
    "g": 43,
    "b": 123
  },
  "hsl": {
    "h": 239.259,
    "s": 49.091,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34243,
    "c": 0.13251,
    "h": 276.3
  },
  "luminance": 0.0365
}

Semantic roles & 50–950 ramp

primary
#2A2B7B
secondary
#ACAB55
accent
#D74FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2A2B7B

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

Preview Lab → · Contrast checker → · Palette generator →

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