#2A2B9B#2A2B9B

#2A2B9B is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.4% C 0.176 H 273.5°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#2A2B9B
RGBrgb(42, 43, 155)
HSLhsl(239, 57%, 39%)
HSVhsv(239, 73%, 61%)
CMYKcmyk(72.9%, 72.3%, 0%, 39.2%)
CIE-LABlab(25.52, 37.69, -60.66)
CIE-LCHlch(25.52, 71.42, 301.85°)
OKLaboklab(37.38% 0.0107 -0.1754)
OKLCHoklch(37.38% 0.176 273.5)
XYZxyz(7.7331, 4.5858, 31.4816)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2B9B #9B9A2A
analogous
#2A639B #2A2B9B #612A9B
triadic
#2A2B9B #9B2A2B #2B9B2A
tetradic
#2A2B9B #9B2A63 #9B9A2A #2A9B61
square
#2A2B9B #9B2A63 #9B9A2A #2A9B61
split-complementary
#2A2B9B #9B612A #639B2A
monochromatic
#10103B #1D1E6B #2A2B9B #393AC9 #696AD6

Accessibility & contrast

On white

10.95
#2A2B9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2A2B9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2B9B
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2B9B#FFFFFF#000000##FFFFFF
##2A2B9B1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429E
Deuteranopia (green-blind)
#003799
Tritanopia (blue-blind)
#004A60
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a2b9b;
/* rgb */ color: rgb(42, 43, 155);
/* oklch */ color: oklch(37.4% 0.176 273.5);
Tailwind
colors: {
  custom: {
    50: '#7565ba',
    500: '#2a2b9b',
    950: '#000000',
  },
}
SCSS
$custom: #2a2b9b;
$custom-light: #7565ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2b9b",
  "rgb": {
    "r": 42,
    "g": 43,
    "b": 155
  },
  "hsl": {
    "h": 239.469,
    "s": 57.36,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37377,
    "c": 0.17577,
    "h": 273.5
  },
  "luminance": 0.04587
}

Semantic roles & 50–950 ramp

primary
#2A2B9B
secondary
#BDBC64
accent
#DF47E1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A2B9B

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

Preview Lab → · Contrast checker → · Palette generator →

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