#2A2C75#2A2C75

#2A2C75 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.9% C 0.122 H 276.5°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#2A2C75
RGBrgb(42, 44, 117)
HSLhsl(238, 47%, 31%)
HSVhsv(238, 64%, 46%)
CMYKcmyk(64.1%, 62.4%, 0%, 54.1%)
CIE-LABlab(22.22, 23.41, -42.32)
CIE-LCHlch(22.22, 48.36, 298.95°)
OKLaboklab(33.89% 0.0138 -0.1217)
OKLCHoklch(33.89% 0.122 276.5)
XYZxyz(5.0654, 3.5776, 17.2498)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2C75 #75732A
analogous
#2A5175 #2A2C75 #4D2A75
triadic
#2A2C75 #752A2C #2C752A
tetradic
#2A2C75 #752A51 #75732A #2A754D
square
#2A2C75 #752A51 #75732A #2A754D
split-complementary
#2A2C75 #754D2A #51752A
monochromatic
#0A0A1B #1A1B48 #2A2C75 #3A3DA2 #575AC3

Accessibility & contrast

On white

12.24
#2A2C75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2A2C75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2C75
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2C75#FFFFFF#000000##FFFFFF
##2A2C751.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003877
Deuteranopia (green-blind)
#003274
Tritanopia (blue-blind)
#003E4C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a2c75;
/* rgb */ color: rgb(42, 44, 117);
/* oklch */ color: oklch(33.9% 0.122 276.5);
Tailwind
colors: {
  custom: {
    50: '#6c659d',
    500: '#2a2c75',
    950: '#000000',
  },
}
SCSS
$custom: #2a2c75;
$custom-light: #6c659d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2c75",
  "rgb": {
    "r": 42,
    "g": 44,
    "b": 117
  },
  "hsl": {
    "h": 238.4,
    "s": 47.17,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33894,
    "c": 0.12249,
    "h": 276.5
  },
  "luminance": 0.03578
}

Semantic roles & 50–950 ramp

primary
#2A2C75
secondary
#A7A554
accent
#D351D7
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #2A2C75

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

Preview Lab → · Contrast checker → · Palette generator →

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