#2A286B#2A286B

#2A286B is a dark, moderate blue. Relative luminance 0.031; OKLCH L 32.2% C 0.113 H 279.3°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#2A286B
RGBrgb(42, 40, 107)
HSLhsl(242, 46%, 29%)
HSVhsv(242, 63%, 42%)
CMYKcmyk(60.7%, 62.6%, 0%, 58%)
CIE-LABlab(20.33, 22.50, -38.96)
CIE-LCHlch(20.33, 44.99, 300.01°)
OKLaboklab(32.23% 0.0182 -0.1119)
OKLCHoklch(32.23% 0.113 279.3)
XYZxyz(4.3666, 3.0711, 14.2697)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A286B #696B28
analogous
#28486B #2A286B #4C286B
triadic
#2A286B #6B2A28 #286B2A
tetradic
#2A286B #6B2848 #696B28 #286B4C
square
#2A286B #6B2848 #696B28 #286B4C
split-complementary
#2A286B #6B4C28 #486B28
monochromatic
#090816 #19173E #2A286B #3B3998 #5350BE

Accessibility & contrast

On white

13.01
#2A286B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A286B
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A286B#FFFFFF#000000##FFFFFF
##2A286B1.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346D
Deuteranopia (green-blind)
#002E6A
Tritanopia (blue-blind)
#043845
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a286b;
/* rgb */ color: rgb(42, 40, 107);
/* oklch */ color: oklch(32.2% 0.113 279.3);
Tailwind
colors: {
  custom: {
    50: '#6b6296',
    500: '#2a286b',
    950: '#000000',
  },
}
SCSS
$custom: #2a286b;
$custom-light: #6b6296;
$custom-dark: #000000;
JSON
{
  "hex": "#2a286b",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 107
  },
  "hsl": {
    "h": 241.791,
    "s": 45.578,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32233,
    "c": 0.11334,
    "h": 279.3
  },
  "luminance": 0.03071
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A286B

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

Preview Lab → · Contrast checker → · Palette generator →

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