#2A2874#2A2874

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

Color values

HEX#2A2874
RGBrgb(42, 40, 116)
HSLhsl(242, 49%, 31%)
HSVhsv(242, 66%, 45%)
CMYKcmyk(63.8%, 65.5%, 0%, 54.5%)
CIE-LABlab(21.10, 25.75, -43.51)
CIE-LCHlch(21.10, 50.56, 300.62°)
OKLaboklab(33.04% 0.0178 -0.1252)
OKLCHoklch(33.04% 0.127 278.1)
XYZxyz(4.8650, 3.2704, 16.8945)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2874 #727428
analogous
#284C74 #2A2874 #502874
triadic
#2A2874 #742A28 #28742A
tetradic
#2A2874 #74284C #727428 #287450
square
#2A2874 #74284C #727428 #287450
split-complementary
#2A2874 #745028 #4C7428
monochromatic
#090919 #1A1846 #2A2874 #3A38A2 #5653C4

Accessibility & contrast

On white

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

On black

1.65
#2A2874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2A2874#FFFFFF#000000##FFFFFF
##2A28741.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003676
Deuteranopia (green-blind)
#003072
Tritanopia (blue-blind)
#003B4A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a2874;
/* rgb */ color: rgb(42, 40, 116);
/* oklch */ color: oklch(33.0% 0.127 278.1);
Tailwind
colors: {
  custom: {
    50: '#6d629d',
    500: '#2a2874',
    950: '#000000',
  },
}
SCSS
$custom: #2a2874;
$custom-light: #6d629d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2874",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 116
  },
  "hsl": {
    "h": 241.579,
    "s": 48.718,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33039,
    "c": 0.1265,
    "h": 278.1
  },
  "luminance": 0.03271
}

Semantic roles & 50–950 ramp

primary
#2A2874
secondary
#A4A652
accent
#D850D5
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2A2874

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

Preview Lab → · Contrast checker → · Palette generator →

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