#2A2283#2A2283

#2A2283 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.154 H 277.7°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#2A2283
RGBrgb(42, 34, 131)
HSLhsl(245, 59%, 32%)
HSVhsv(245, 74%, 51%)
CMYKcmyk(67.9%, 74%, 0%, 48.6%)
CIE-LABlab(21.11, 34.86, -53.02)
CIE-LCHlch(21.11, 63.45, 303.32°)
OKLaboklab(33.49% 0.0207 -0.1531)
OKLCHoklch(33.49% 0.155 277.7)
XYZxyz(5.6223, 3.2745, 21.8041)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2283 #7B8322
analogous
#224B83 #2A2283 #5A2283
triadic
#2A2283 #832A22 #22832A
tetradic
#2A2283 #83224B #7B8322 #22835A
square
#2A2283 #83224B #7B8322 #22835A
split-complementary
#2A2283 #835A22 #4B8322
monochromatic
#0B0922 #1A1552 #2A2283 #3A2FB4 #594ED1

Accessibility & contrast

On white

12.69
#2A2283 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2283
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2283#FFFFFF#000000##FFFFFF
##2A22831.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003786
Deuteranopia (green-blind)
#002F81
Tritanopia (blue-blind)
#003D50
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a2283;
/* rgb */ color: rgb(42, 34, 131);
/* oklch */ color: oklch(33.5% 0.154 277.7);
Tailwind
colors: {
  custom: {
    50: '#715ea8',
    500: '#2a2283',
    950: '#000000',
  },
}
SCSS
$custom: #2a2283;
$custom-light: #715ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2283",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 131
  },
  "hsl": {
    "h": 244.948,
    "s": 58.788,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33488,
    "c": 0.1545,
    "h": 277.7
  },
  "luminance": 0.03275
}

Semantic roles & 50–950 ramp

primary
#2A2283
secondary
#ACB44C
accent
#E246D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A2283

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

Preview Lab → · Contrast checker → · Palette generator →

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