#2A2B8B#2A2B8B

#2A2B8B is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.8% C 0.155 H 274.8°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#2A2B8B
RGBrgb(42, 43, 139)
HSLhsl(239, 54%, 35%)
HSVhsv(239, 70%, 55%)
CMYKcmyk(69.8%, 69.1%, 0%, 45.5%)
CIE-LABlab(23.95, 32.05, -53.38)
CIE-LCHlch(23.95, 62.26, 300.98°)
OKLaboklab(35.77% 0.013 -0.1542)
OKLCHoklch(35.77% 0.155 274.8)
XYZxyz(6.4774, 4.0835, 24.8679)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2B8B #8B8A2A
analogous
#2A5C8B #2A2B8B #592A8B
triadic
#2A2B8B #8B2A2B #2B8B2A
tetradic
#2A2B8B #8B2A5C #8B8A2A #2A8B59
square
#2A2B8B #8B2A5C #8B8A2A #2A8B59
split-complementary
#2A2B8B #8B592A #5C8B2A
monochromatic
#0E0E2D #1C1C5C #2A2B8B #383ABA #6061CF

Accessibility & contrast

On white

11.56
#2A2B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2A2B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2B8B
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2B8B#FFFFFF#000000##FFFFFF
##2A2B8B1.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003589
Tritanopia (blue-blind)
#004557
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a2b8b;
/* rgb */ color: rgb(42, 43, 139);
/* oklch */ color: oklch(35.8% 0.155 274.8);
Tailwind
colors: {
  custom: {
    50: '#7265ae',
    500: '#2a2b8b',
    950: '#000000',
  },
}
SCSS
$custom: #2a2b8b;
$custom-light: #7265ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2b8b",
  "rgb": {
    "r": 42,
    "g": 43,
    "b": 139
  },
  "hsl": {
    "h": 239.381,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35765,
    "c": 0.15471,
    "h": 274.8
  },
  "luminance": 0.04084
}

Semantic roles & 50–950 ramp

primary
#2A2B8B
secondary
#B5B45C
accent
#DB4BDD
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2A2B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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