#2A286E#2A286E

#2A286E is a dark, moderate blue. Relative luminance 0.031; OKLCH L 32.5% C 0.118 H 278.9°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#2A286E
RGBrgb(42, 40, 110)
HSLhsl(242, 47%, 29%)
HSVhsv(242, 64%, 43%)
CMYKcmyk(61.8%, 63.6%, 0%, 56.9%)
CIE-LABlab(20.58, 23.58, -40.49)
CIE-LCHlch(20.58, 46.86, 300.22°)
OKLaboklab(32.5% 0.0181 -0.1164)
OKLCHoklch(32.5% 0.118 278.9)
XYZxyz(4.5272, 3.1353, 15.1154)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A286E #6C6E28
analogous
#28496E #2A286E #4D286E
triadic
#2A286E #6E2A28 #286E2A
tetradic
#2A286E #6E2849 #6C6E28 #286E4D
square
#2A286E #6E2849 #6C6E28 #286E4D
split-complementary
#2A286E #6E4D28 #496E28
monochromatic
#090816 #191841 #2A286E #3B389B #5451C0

Accessibility & contrast

On white

12.91
#2A286E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2A286E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A286E
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A286E#FFFFFF#000000##FFFFFF
##2A286E1.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003470
Deuteranopia (green-blind)
#002F6D
Tritanopia (blue-blind)
#003947
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2a286e;
/* rgb */ color: rgb(42, 40, 110);
/* oklch */ color: oklch(32.5% 0.118 278.9);
Tailwind
colors: {
  custom: {
    50: '#6b6298',
    500: '#2a286e',
    950: '#000000',
  },
}
SCSS
$custom: #2a286e;
$custom-light: #6b6298;
$custom-dark: #000000;
JSON
{
  "hex": "#2a286e",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 110
  },
  "hsl": {
    "h": 241.714,
    "s": 46.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32497,
    "c": 0.11777,
    "h": 278.9
  },
  "luminance": 0.03136
}

Semantic roles & 50–950 ramp

primary
#2A286E
secondary
#9EA051
accent
#D651D3
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #2A286E

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

Preview Lab → · Contrast checker → · Palette generator →

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