#2A2167#2A2167

#2A2167 is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.6% C 0.117 H 282.8°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#2A2167
RGBrgb(42, 33, 103)
HSLhsl(248, 51%, 27%)
HSVhsv(248, 68%, 40%)
CMYKcmyk(59.2%, 68%, 0%, 59.6%)
CIE-LABlab(18.18, 25.79, -39.84)
CIE-LCHlch(18.18, 47.46, 302.92°)
OKLaboklab(30.56% 0.026 -0.1145)
OKLCHoklch(30.56% 0.117 282.8)
XYZxyz(3.9461, 2.5590, 13.1153)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2167 #5E6721
analogous
#213B67 #2A2167 #4D2167
triadic
#2A2167 #672A21 #21672A
tetradic
#2A2167 #67213B #5E6721 #21674D
square
#2A2167 #67213B #5E6721 #21674D
split-complementary
#2A2167 #674D21 #3B6721
monochromatic
#090717 #171239 #2A2167 #3D3095 #5140C2

Accessibility & contrast

On white

13.89
#2A2167 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2A2167 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2167
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2167#FFFFFF#000000##FFFFFF
##2A21671.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F69
Deuteranopia (green-blind)
#002A66
Tritanopia (blue-blind)
#0C3240
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2a2167;
/* rgb */ color: rgb(42, 33, 103);
/* oklch */ color: oklch(30.6% 0.117 282.8);
Tailwind
colors: {
  custom: {
    50: '#6b5d93',
    500: '#2a2167',
    950: '#000000',
  },
}
SCSS
$custom: #2a2167;
$custom-light: #6b5d93;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2167",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 103
  },
  "hsl": {
    "h": 247.714,
    "s": 51.471,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30555,
    "c": 0.11738,
    "h": 282.8
  },
  "luminance": 0.02559
}

Semantic roles & 50–950 ramp

primary
#2A2167
secondary
#909B49
accent
#DB4DC9
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2A2167

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

Preview Lab → · Contrast checker → · Palette generator →

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