#2A2C88#2A2C88

#2A2C88 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.6% C 0.149 H 274.8°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#2A2C88
RGBrgb(42, 44, 136)
HSLhsl(239, 53%, 35%)
HSVhsv(239, 69%, 53%)
CMYKcmyk(69.1%, 67.6%, 0%, 46.7%)
CIE-LABlab(23.90, 30.33, -51.58)
CIE-LCHlch(23.90, 59.84, 300.46°)
OKLaboklab(35.65% 0.0126 -0.1489)
OKLCHoklch(35.65% 0.149 274.8)
XYZxyz(6.2980, 4.0706, 23.7416)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2C88 #88862A
analogous
#2A5B88 #2A2C88 #572A88
triadic
#2A2C88 #882A2C #2C882A
tetradic
#2A2C88 #882A5B #88862A #2A8857
square
#2A2C88 #882A5B #88862A #2A8857
split-complementary
#2A2C88 #88572A #5B882A
monochromatic
#0D0E2A #1C1D59 #2A2C88 #383BB7 #5F61CE

Accessibility & contrast

On white

11.58
#2A2C88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2C88
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2C88#FFFFFF#000000##FFFFFF
##2A2C881.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a2c88;
/* rgb */ color: rgb(42, 44, 136);
/* oklch */ color: oklch(35.6% 0.149 274.8);
Tailwind
colors: {
  custom: {
    50: '#7165ac',
    500: '#2a2c88',
    950: '#000000',
  },
}
SCSS
$custom: #2a2c88;
$custom-light: #7165ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2c88",
  "rgb": {
    "r": 42,
    "g": 44,
    "b": 136
  },
  "hsl": {
    "h": 238.723,
    "s": 52.809,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35648,
    "c": 0.14941,
    "h": 274.8
  },
  "luminance": 0.04071
}

Semantic roles & 50–950 ramp

primary
#2A2C88
secondary
#B3B15B
accent
#D94CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2A2C88

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

Preview Lab → · Contrast checker → · Palette generator →

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