#2A2B8A#2A2B8A

#2A2B8A is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.7% C 0.153 H 274.9°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#2A2B8A
RGBrgb(42, 43, 138)
HSLhsl(239, 53%, 35%)
HSVhsv(239, 70%, 54%)
CMYKcmyk(69.6%, 68.8%, 0%, 45.9%)
CIE-LABlab(23.85, 31.70, -52.91)
CIE-LCHlch(23.85, 61.68, 300.92°)
OKLaboklab(35.67% 0.0131 -0.1528)
OKLCHoklch(35.67% 0.153 274.9)
XYZxyz(6.4047, 4.0544, 24.4849)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2B8A #8A892A
analogous
#2A5B8A #2A2B8A #592A8A
triadic
#2A2B8A #8A2A2B #2B8A2A
tetradic
#2A2B8A #8A2A5B #8A892A #2A8A59
square
#2A2B8A #8A2A5B #8A892A #2A8A59
split-complementary
#2A2B8A #8A592A #5B8A2A
monochromatic
#0D0E2C #1C1C5B #2A2B8A #383AB9 #6061CF

Accessibility & contrast

On white

11.60
#2A2B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2A2B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2B8A
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2B8A#FFFFFF#000000##FFFFFF
##2A2B8A1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#003488
Tritanopia (blue-blind)
#004456
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a2b8a;
/* rgb */ color: rgb(42, 43, 138);
/* oklch */ color: oklch(35.7% 0.153 274.9);
Tailwind
colors: {
  custom: {
    50: '#7165ad',
    500: '#2a2b8a',
    950: '#000000',
  },
}
SCSS
$custom: #2a2b8a;
$custom-light: #7165ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2b8a",
  "rgb": {
    "r": 42,
    "g": 43,
    "b": 138
  },
  "hsl": {
    "h": 239.375,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35667,
    "c": 0.15336,
    "h": 274.9
  },
  "luminance": 0.04055
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A2B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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