#2A286D#2A286D

#2A286D is a dark, moderate blue. Relative luminance 0.031; OKLCH L 32.4% C 0.116 H 279.0°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#2A286D
RGBrgb(42, 40, 109)
HSLhsl(242, 46%, 29%)
HSVhsv(242, 63%, 43%)
CMYKcmyk(61.5%, 63.3%, 0%, 57.3%)
CIE-LABlab(20.49, 23.22, -39.98)
CIE-LCHlch(20.49, 46.24, 300.15°)
OKLaboklab(32.41% 0.0182 -0.1149)
OKLCHoklch(32.41% 0.116 279)
XYZxyz(4.4731, 3.1136, 14.8303)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A286D #6B6D28
analogous
#28496D #2A286D #4D286D
triadic
#2A286D #6D2A28 #286D2A
tetradic
#2A286D #6D2849 #6B6D28 #286D4D
square
#2A286D #6D2849 #6B6D28 #286D4D
split-complementary
#2A286D #6D4D28 #496D28
monochromatic
#090816 #191840 #2A286D #3B389A #5450BF

Accessibility & contrast

On white

12.94
#2A286D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2A286D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A286D
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A286D#FFFFFF#000000##FFFFFF
##2A286D1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346F
Deuteranopia (green-blind)
#002F6C
Tritanopia (blue-blind)
#003946
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a286d;
/* rgb */ color: rgb(42, 40, 109);
/* oklch */ color: oklch(32.4% 0.116 279.0);
Tailwind
colors: {
  custom: {
    50: '#6b6297',
    500: '#2a286d',
    950: '#000000',
  },
}
SCSS
$custom: #2a286d;
$custom-light: #6b6297;
$custom-dark: #000000;
JSON
{
  "hex": "#2a286d",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 109
  },
  "hsl": {
    "h": 241.739,
    "s": 46.309,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32408,
    "c": 0.1163,
    "h": 279
  },
  "luminance": 0.03114
}

Semantic roles & 50–950 ramp

primary
#2A286D
secondary
#9D9F51
accent
#D652D2
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050D
muted
#7A797E

Preview Lab

Preview with #2A286D

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

Preview Lab → · Contrast checker → · Palette generator →

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