#2A2B9C#2A2B9C

#2A2B9C is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.5% C 0.177 H 273.4°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#2A2B9C
RGBrgb(42, 43, 156)
HSLhsl(239, 58%, 39%)
HSVhsv(239, 73%, 61%)
CMYKcmyk(73.1%, 72.4%, 0%, 38.8%)
CIE-LABlab(25.62, 38.04, -61.11)
CIE-LCHlch(25.62, 71.98, 301.90°)
OKLaboklab(37.48% 0.0106 -0.1767)
OKLCHoklch(37.48% 0.177 273.4)
XYZxyz(7.8175, 4.6195, 31.9257)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2B9C #9C9B2A
analogous
#2A649C #2A2B9C #622A9C
triadic
#2A2B9C #9C2A2B #2B9C2A
tetradic
#2A2B9C #9C2A64 #9C9B2A #2A9C62
square
#2A2B9C #9C2A64 #9C9B2A #2A9C62
split-complementary
#2A2B9C #9C622A #649C2A
monochromatic
#10103C #1D1E6C #2A2B9C #393BCA #6A6BD7

Accessibility & contrast

On white

10.91
#2A2B9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2B9C
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2B9C#FFFFFF#000000##FFFFFF
##2A2B9C1.0010.911.9210.91
#FFFFFF10.911.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#00379A
Tritanopia (blue-blind)
#004B60
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a2b9c;
/* rgb */ color: rgb(42, 43, 156);
/* oklch */ color: oklch(37.5% 0.177 273.4);
Tailwind
colors: {
  custom: {
    50: '#7665ba',
    500: '#2a2b9c',
    950: '#000000',
  },
}
SCSS
$custom: #2a2b9c;
$custom-light: #7665ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2b9c",
  "rgb": {
    "r": 42,
    "g": 43,
    "b": 156
  },
  "hsl": {
    "h": 239.474,
    "s": 57.576,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37481,
    "c": 0.17706,
    "h": 273.4
  },
  "luminance": 0.0462
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A2B9C

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

Preview Lab → · Contrast checker → · Palette generator →

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