#2A2883#2A2883

#2A2883 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.5% C 0.147 H 276.3°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#2A2883
RGBrgb(42, 40, 131)
HSLhsl(241, 53%, 34%)
HSVhsv(241, 69%, 51%)
CMYKcmyk(67.9%, 69.5%, 0%, 48.6%)
CIE-LABlab(22.47, 31.12, -50.79)
CIE-LCHlch(22.47, 59.57, 301.50°)
OKLaboklab(34.47% 0.0162 -0.1466)
OKLCHoklch(34.47% 0.147 276.3)
XYZxyz(5.8090, 3.6480, 21.8663)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2883 #818328
analogous
#285383 #2A2883 #572883
triadic
#2A2883 #832A28 #28832A
tetradic
#2A2883 #832853 #818328 #288357
square
#2A2883 #832853 #818328 #288357
split-complementary
#2A2883 #835728 #538328
monochromatic
#0C0B25 #1B1A54 #2A2883 #3936B2 #5C59CC

Accessibility & contrast

On white

12.14
#2A2883 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2A2883 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2883
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2883#FFFFFF#000000##FFFFFF
##2A28831.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A86
Deuteranopia (green-blind)
#003281
Tritanopia (blue-blind)
#004052
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a2883;
/* rgb */ color: rgb(42, 40, 131);
/* oklch */ color: oklch(34.5% 0.147 276.3);
Tailwind
colors: {
  custom: {
    50: '#7062a8',
    500: '#2a2883',
    950: '#000000',
  },
}
SCSS
$custom: #2a2883;
$custom-light: #7062a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2883",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 131
  },
  "hsl": {
    "h": 241.319,
    "s": 53.216,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34465,
    "c": 0.14749,
    "h": 276.3
  },
  "luminance": 0.03649
}

Semantic roles & 50–950 ramp

primary
#2A2883
secondary
#AFB155
accent
#DD4BD9
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #2A2883

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

Preview Lab → · Contrast checker → · Palette generator →

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