#2A2088#2A2088

#2A2088 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.163 H 277.4°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#2A2088
RGBrgb(42, 32, 136)
HSLhsl(246, 62%, 33%)
HSVhsv(246, 76%, 53%)
CMYKcmyk(69.1%, 76.5%, 0%, 46.7%)
CIE-LABlab(21.22, 37.71, -56.00)
CIE-LCHlch(21.22, 67.51, 303.96°)
OKLaboklab(33.72% 0.0209 -0.1618)
OKLCHoklch(33.72% 0.163 277.4)
XYZxyz(5.9138, 3.3023, 23.6135)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2088 #7E8820
analogous
#204A88 #2A2088 #5E2088
triadic
#2A2088 #882A20 #20882A
tetradic
#2A2088 #88204A #7E8820 #20885E
square
#2A2088 #88204A #7E8820 #20885E
split-complementary
#2A2088 #885E20 #4A8820
monochromatic
#0B0925 #1B1456 #2A2088 #392CBA #5A4DD5

Accessibility & contrast

On white

12.65
#2A2088 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2A2088 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2088
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2088#FFFFFF#000000##FFFFFF
##2A20881.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378B
Deuteranopia (green-blind)
#002F86
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a2088;
/* rgb */ color: rgb(42, 32, 136);
/* oklch */ color: oklch(33.7% 0.163 277.4);
Tailwind
colors: {
  custom: {
    50: '#725dac',
    500: '#2a2088',
    950: '#000000',
  },
}
SCSS
$custom: #2a2088;
$custom-light: #725dac;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2088",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 136
  },
  "hsl": {
    "h": 245.769,
    "s": 61.905,
    "l": 32.941
  },
  "oklch": {
    "l": 0.3372,
    "c": 0.16311,
    "h": 277.4
  },
  "luminance": 0.03303
}

Semantic roles & 50–950 ramp

primary
#2A2088
secondary
#AEB84C
accent
#E543D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A2088

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

Preview Lab → · Contrast checker → · Palette generator →

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