#2A286A#2A286A

#2A286A is a dark, moderate blue. Relative luminance 0.030; OKLCH L 32.1% C 0.112 H 279.4°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#2A286A
RGBrgb(42, 40, 106)
HSLhsl(242, 45%, 29%)
HSVhsv(242, 62%, 42%)
CMYKcmyk(60.4%, 62.3%, 0%, 58.4%)
CIE-LABlab(20.24, 22.14, -38.44)
CIE-LCHlch(20.24, 44.36, 299.94°)
OKLaboklab(32.15% 0.0183 -0.1103)
OKLCHoklch(32.15% 0.112 279.4)
XYZxyz(4.3143, 3.0501, 13.9943)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A286A #686A28
analogous
#28476A #2A286A #4B286A
triadic
#2A286A #6A2A28 #286A2A
tetradic
#2A286A #6A2847 #686A28 #286A4B
square
#2A286A #6A2847 #686A28 #286A4B
split-complementary
#2A286A #6A4B28 #476A28
monochromatic
#090816 #18173E #2A286A #3C3996 #5350BD

Accessibility & contrast

On white

13.04
#2A286A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2A286A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A286A
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A286A#FFFFFF#000000##FFFFFF
##2A286A1.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336C
Deuteranopia (green-blind)
#002E69
Tritanopia (blue-blind)
#063844
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a286a;
/* rgb */ color: rgb(42, 40, 106);
/* oklch */ color: oklch(32.1% 0.112 279.4);
Tailwind
colors: {
  custom: {
    50: '#6b6295',
    500: '#2a286a',
    950: '#000000',
  },
}
SCSS
$custom: #2a286a;
$custom-light: #6b6295;
$custom-dark: #000000;
JSON
{
  "hex": "#2a286a",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 106
  },
  "hsl": {
    "h": 241.818,
    "s": 45.205,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32146,
    "c": 0.11184,
    "h": 279.4
  },
  "luminance": 0.0305
}

Semantic roles & 50–950 ramp

primary
#2A286A
secondary
#9A9D51
accent
#D553D1
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050D
muted
#7A797E

Preview Lab

Preview with #2A286A

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

Preview Lab → · Contrast checker → · Palette generator →

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