#2A2BAD#2A2BAD

#2A2BAD is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.3% C 0.198 H 272.2°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#2A2BAD
RGBrgb(42, 43, 173)
HSLhsl(240, 61%, 42%)
HSVhsv(240, 76%, 68%)
CMYKcmyk(75.7%, 75.1%, 0%, 32.2%)
CIE-LABlab(27.40, 43.83, -68.47)
CIE-LCHlch(27.40, 81.30, 302.63°)
OKLaboklab(39.28% 0.0077 -0.1982)
OKLCHoklch(39.28% 0.198 272.2)
XYZxyz(9.3590, 5.2361, 40.0445)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2BAD #ADAC2A
analogous
#2A6DAD #2A2BAD #6B2AAD
triadic
#2A2BAD #AD2A2B #2BAD2A
tetradic
#2A2BAD #AD2A6D #ADAC2A #2AAD6B
square
#2A2BAD #AD2A6D #ADAC2A #2AAD6B
split-complementary
#2A2BAD #AD6B2A #6DAD2A
monochromatic
#12134B #1E1F7C #2A2BAD #4344D1 #7475DD

Accessibility & contrast

On white

10.26
#2A2BAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2A2BAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2BAD
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2BAD#FFFFFF#000000##FFFFFF
##2A2BAD1.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B1
Deuteranopia (green-blind)
#003AAB
Tritanopia (blue-blind)
#00516A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a2bad;
/* rgb */ color: rgb(42, 43, 173);
/* oklch */ color: oklch(39.3% 0.198 272.2);
Tailwind
colors: {
  custom: {
    50: '#7a66c7',
    500: '#2a2bad',
    950: '#000000',
  },
}
SCSS
$custom: #2a2bad;
$custom-light: #7a66c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2bad",
  "rgb": {
    "r": 42,
    "g": 43,
    "b": 173
  },
  "hsl": {
    "h": 239.542,
    "s": 60.93,
    "l": 42.157
  },
  "oklch": {
    "l": 0.39275,
    "c": 0.19833,
    "h": 272.2
  },
  "luminance": 0.05237
}

Semantic roles & 50–950 ramp

primary
#2A2BAD
secondary
#C5C46E
accent
#E344E4
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2A2BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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