#2A264E#2A264E

#2A264E is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.5% C 0.071 H 285.7°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#2A264E
RGBrgb(42, 38, 78)
HSLhsl(246, 34%, 23%)
HSVhsv(246, 51%, 31%)
CMYKcmyk(46.2%, 51.3%, 0%, 69.4%)
CIE-LABlab(17.59, 13.62, -24.12)
CIE-LCHlch(17.59, 27.70, 299.45°)
OKLaboklab(29.5% 0.0193 -0.0683)
OKLCHoklch(29.5% 0.071 285.7)
XYZxyz(3.0227, 2.4284, 7.5157)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A264E #4A4E26
analogous
#26364E #2A264E #3E264E
triadic
#2A264E #4E2A26 #264E2A
tetradic
#2A264E #4E2636 #4A4E26 #264E3E
square
#2A264E #4E2636 #4A4E26 #264E3E
split-complementary
#2A264E #4E3E26 #364E26
monochromatic
#0B0A15 #141225 #2A264E #403A77 #564EA0

Accessibility & contrast

On white

14.13
#2A264E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2A264E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A264E
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A264E#FFFFFF#000000##FFFFFF
##2A264E1.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172C4F
Deuteranopia (green-blind)
#162A4D
Tritanopia (blue-blind)
#1F2E36
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2a264e;
/* rgb */ color: rgb(42, 38, 78);
/* oklch */ color: oklch(29.5% 0.071 285.7);
Tailwind
colors: {
  custom: {
    50: '#666080',
    500: '#2a264e',
    950: '#000000',
  },
}
SCSS
$custom: #2a264e;
$custom-light: #666080;
$custom-dark: #000000;
JSON
{
  "hex": "#2a264e",
  "rgb": {
    "r": 42,
    "g": 38,
    "b": 78
  },
  "hsl": {
    "h": 246,
    "s": 34.483,
    "l": 22.745
  },
  "oklch": {
    "l": 0.29499,
    "c": 0.07094,
    "h": 285.7
  },
  "luminance": 0.02429
}

Semantic roles & 50–950 ramp

primary
#2A264E
secondary
#7C814F
accent
#CB5DC0
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #2A264E

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

Preview Lab → · Contrast checker → · Palette generator →

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