#2A2867#2A2867

#2A2867 is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.9% C 0.107 H 279.8°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#2A2867
RGBrgb(42, 40, 103)
HSLhsl(242, 44%, 28%)
HSVhsv(242, 61%, 40%)
CMYKcmyk(59.2%, 61.2%, 0%, 59.6%)
CIE-LABlab(20.00, 21.05, -36.88)
CIE-LCHlch(20.00, 42.47, 299.72°)
OKLaboklab(31.89% 0.0183 -0.1058)
OKLCHoklch(31.89% 0.107 279.8)
XYZxyz(4.1611, 2.9888, 13.1870)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2867 #656728
analogous
#284567 #2A2867 #492867
triadic
#2A2867 #672A28 #28672A
tetradic
#2A2867 #672845 #656728 #286749
square
#2A2867 #672845 #656728 #286749
split-complementary
#2A2867 #674928 #456728
monochromatic
#090916 #18173B #2A2867 #3C3993 #524FBB

Accessibility & contrast

On white

13.14
#2A2867 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2A2867 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2867
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2867#FFFFFF#000000##FFFFFF
##2A28671.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003369
Deuteranopia (green-blind)
#002E66
Tritanopia (blue-blind)
#0B3743
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a2867;
/* rgb */ color: rgb(42, 40, 103);
/* oklch */ color: oklch(31.9% 0.107 279.8);
Tailwind
colors: {
  custom: {
    50: '#6a6293',
    500: '#2a2867',
    950: '#000000',
  },
}
SCSS
$custom: #2a2867;
$custom-light: #6a6293;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2867",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 103
  },
  "hsl": {
    "h": 241.905,
    "s": 44.056,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31888,
    "c": 0.10733,
    "h": 279.8
  },
  "luminance": 0.02989
}

Semantic roles & 50–950 ramp

primary
#2A2867
secondary
#979A51
accent
#D454D0
background
#F6F5F9
surface
#EBEAF1
border
#C6C6CB
text
#07050D
muted
#7A797E

Preview Lab

Preview with #2A2867

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

Preview Lab → · Contrast checker → · Palette generator →

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