#2A2C8F#2A2C8F

#2A2C8F is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.3% C 0.159 H 274.3°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#2A2C8F
RGBrgb(42, 44, 143)
HSLhsl(239, 55%, 36%)
HSVhsv(239, 71%, 56%)
CMYKcmyk(70.6%, 69.2%, 0%, 43.9%)
CIE-LABlab(24.56, 32.84, -54.85)
CIE-LCHlch(24.56, 63.93, 300.91°)
OKLaboklab(36.33% 0.0118 -0.1585)
OKLCHoklch(36.33% 0.159 274.3)
XYZxyz(6.8118, 4.2761, 26.4477)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2C8F #8F8D2A
analogous
#2A5F8F #2A2C8F #5B2A8F
triadic
#2A2C8F #8F2A2C #2C8F2A
tetradic
#2A2C8F #8F2A5F #8F8D2A #2A8F5B
square
#2A2C8F #8F2A5F #8F8D2A #2A8F5B
split-complementary
#2A2C8F #8F5B2A #5F8F2A
monochromatic
#0E0F30 #1C1D60 #2A2C8F #383BBE #6265D1

Accessibility & contrast

On white

11.32
#2A2C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2A2C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2C8F
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2C8F#FFFFFF#000000##FFFFFF
##2A2C8F1.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#00368D
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a2c8f;
/* rgb */ color: rgb(42, 44, 143);
/* oklch */ color: oklch(36.3% 0.159 274.3);
Tailwind
colors: {
  custom: {
    50: '#7265b1',
    500: '#2a2c8f',
    950: '#000000',
  },
}
SCSS
$custom: #2a2c8f;
$custom-light: #7265b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2c8f",
  "rgb": {
    "r": 42,
    "g": 44,
    "b": 143
  },
  "hsl": {
    "h": 238.812,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.3633,
    "c": 0.1589,
    "h": 274.3
  },
  "luminance": 0.04277
}

Semantic roles & 50–950 ramp

primary
#2A2C8F
secondary
#B7B55E
accent
#DB4ADE
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A2C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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