#2A2A94#2A2A94

#2A2A94 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.5% C 0.168 H 274.2°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#2A2A94
RGBrgb(42, 42, 148)
HSLhsl(240, 56%, 37%)
HSVhsv(240, 72%, 58%)
CMYKcmyk(71.6%, 71.6%, 0%, 42%)
CIE-LABlab(24.59, 35.86, -57.89)
CIE-LCHlch(24.59, 68.10, 301.78°)
OKLaboklab(36.5% 0.0124 -0.1673)
OKLCHoklch(36.5% 0.168 274.2)
XYZxyz(7.1263, 4.2856, 28.4629)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2A94 #94942A
analogous
#2A5F94 #2A2A94 #5F2A94
triadic
#2A2A94 #942A2A #2A942A
tetradic
#2A2A94 #942A5F #94942A #2A945F
square
#2A2A94 #942A5F #94942A #2A945F
split-complementary
#2A2A94 #945F2A #5F942A
monochromatic
#0F0F35 #1C1C64 #2A2A94 #3838C4 #6565D3

Accessibility & contrast

On white

11.31
#2A2A94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2A94
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2A94#FFFFFF#000000##FFFFFF
##2A2A941.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F97
Deuteranopia (green-blind)
#003592
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a2a94;
/* rgb */ color: rgb(42, 42, 148);
/* oklch */ color: oklch(36.5% 0.168 274.2);
Tailwind
colors: {
  custom: {
    50: '#7464b4',
    500: '#2a2a94',
    950: '#000000',
  },
}
SCSS
$custom: #2a2a94;
$custom-light: #7464b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2a94",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 148
  },
  "hsl": {
    "h": 240,
    "s": 55.789,
    "l": 37.255
  },
  "oklch": {
    "l": 0.365,
    "c": 0.16781,
    "h": 274.2
  },
  "luminance": 0.04286
}

Semantic roles & 50–950 ramp

primary
#2A2A94
secondary
#B9B960
accent
#DF49DF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #2A2A94

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

Preview Lab → · Contrast checker → · Palette generator →

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