#2A2B8E#2A2B8E

#2A2B8E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.1% C 0.159 H 274.6°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#2A2B8E
RGBrgb(42, 43, 142)
HSLhsl(239, 54%, 36%)
HSVhsv(239, 70%, 56%)
CMYKcmyk(70.4%, 69.7%, 0%, 44.3%)
CIE-LABlab(24.23, 33.12, -54.77)
CIE-LCHlch(24.23, 64.01, 301.16°)
OKLaboklab(36.06% 0.0126 -0.1582)
OKLCHoklch(36.06% 0.159 274.6)
XYZxyz(6.6996, 4.1724, 26.0382)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2B8E #8E8D2A
analogous
#2A5D8E #2A2B8E #5B2A8E
triadic
#2A2B8E #8E2A2B #2B8E2A
tetradic
#2A2B8E #8E2A5D #8E8D2A #2A8E5B
square
#2A2B8E #8E2A5D #8E8D2A #2A8E5B
split-complementary
#2A2B8E #8E5B2A #5D8E2A
monochromatic
#0E0E30 #1C1D5F #2A2B8E #3839BD #6263D1

Accessibility & contrast

On white

11.45
#2A2B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2A2B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2B8E
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2B8E#FFFFFF#000000##FFFFFF
##2A2B8E1.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00358C
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a2b8e;
/* rgb */ color: rgb(42, 43, 142);
/* oklch */ color: oklch(36.1% 0.159 274.6);
Tailwind
colors: {
  custom: {
    50: '#7265b0',
    500: '#2a2b8e',
    950: '#000000',
  },
}
SCSS
$custom: #2a2b8e;
$custom-light: #7265b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2b8e",
  "rgb": {
    "r": 42,
    "g": 43,
    "b": 142
  },
  "hsl": {
    "h": 239.4,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36061,
    "c": 0.15874,
    "h": 274.6
  },
  "luminance": 0.04173
}

Semantic roles & 50–950 ramp

primary
#2A2B8E
secondary
#B6B65D
accent
#DC4ADE
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #2A2B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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