#2C2A8A#2C2A8A

#2C2A8A is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.6% C 0.154 H 276.1°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#2C2A8A
RGBrgb(44, 42, 138)
HSLhsl(241, 53%, 35%)
HSVhsv(241, 70%, 54%)
CMYKcmyk(68.1%, 69.6%, 0%, 45.9%)
CIE-LABlab(23.76, 32.61, -53.06)
CIE-LCHlch(23.76, 62.28, 301.57°)
OKLaboklab(35.64% 0.0164 -0.1532)
OKLCHoklch(35.64% 0.154 276.1)
XYZxyz(6.4526, 4.0258, 24.4768)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2A8A #888A2A
analogous
#2A588A #2C2A8A #5C2A8A
triadic
#2C2A8A #8A2C2A #2A8A2C
tetradic
#2C2A8A #8A2A58 #888A2A #2A8A5C
square
#2C2A8A #8A2A58 #888A2A #2A8A5C
split-complementary
#2C2A8A #8A5C2A #588A2A
monochromatic
#0E0D2C #1D1C5B #2C2A8A #3B38B9 #6260CF

Accessibility & contrast

On white

11.63
#2C2A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2C2A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2A8A
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2A8A#FFFFFF#000000##FFFFFF
##2C2A8A1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#003488
Tritanopia (blue-blind)
#004456
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2c2a8a;
/* rgb */ color: rgb(44, 42, 138);
/* oklch */ color: oklch(35.6% 0.154 276.1);
Tailwind
colors: {
  custom: {
    50: '#7264ad',
    500: '#2c2a8a',
    950: '#000000',
  },
}
SCSS
$custom: #2c2a8a;
$custom-light: #7264ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2a8a",
  "rgb": {
    "r": 44,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 241.25,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35636,
    "c": 0.15406,
    "h": 276.1
  },
  "luminance": 0.04026
}

Semantic roles & 50–950 ramp

primary
#2C2A8A
secondary
#B3B45B
accent
#DD4BDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2C2A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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