#2A2B9D#2A2B9D

#2A2B9D is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.6% C 0.178 H 273.4°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#2A2B9D
RGBrgb(42, 43, 157)
HSLhsl(239, 58%, 39%)
HSVhsv(239, 73%, 62%)
CMYKcmyk(73.2%, 72.6%, 0%, 38.4%)
CIE-LABlab(25.72, 38.38, -61.55)
CIE-LCHlch(25.72, 72.54, 301.95°)
OKLaboklab(37.58% 0.0104 -0.178)
OKLCHoklch(37.58% 0.178 273.4)
XYZxyz(7.9025, 4.6535, 32.3735)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2B9D #9D9C2A
analogous
#2A659D #2A2B9D #632A9D
triadic
#2A2B9D #9D2A2B #2B9D2A
tetradic
#2A2B9D #9D2A65 #9D9C2A #2A9D63
square
#2A2B9D #9D2A65 #9D9C2A #2A9D63
split-complementary
#2A2B9D #9D632A #659D2A
monochromatic
#10113C #1D1E6D #2A2B9D #3A3BCA #6A6BD7

Accessibility & contrast

On white

10.88
#2A2B9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2A2B9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2B9D
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2B9D#FFFFFF#000000##FFFFFF
##2A2B9D1.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A0
Deuteranopia (green-blind)
#00379B
Tritanopia (blue-blind)
#004B61
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a2b9d;
/* rgb */ color: rgb(42, 43, 157);
/* oklch */ color: oklch(37.6% 0.178 273.4);
Tailwind
colors: {
  custom: {
    50: '#7665bb',
    500: '#2a2b9d',
    950: '#000000',
  },
}
SCSS
$custom: #2a2b9d;
$custom-light: #7665bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2b9d",
  "rgb": {
    "r": 42,
    "g": 43,
    "b": 157
  },
  "hsl": {
    "h": 239.478,
    "s": 57.789,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37584,
    "c": 0.17834,
    "h": 273.4
  },
  "luminance": 0.04654
}

Semantic roles & 50–950 ramp

primary
#2A2B9D
secondary
#BEBD65
accent
#E047E1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A2B9D

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

Preview Lab → · Contrast checker → · Palette generator →

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