#2A256A#2A256A

#2A256A is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.6% C 0.116 H 280.7°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#2A256A
RGBrgb(42, 37, 106)
HSLhsl(244, 48%, 28%)
HSVhsv(244, 65%, 42%)
CMYKcmyk(60.4%, 65.1%, 0%, 58.4%)
CIE-LABlab(19.46, 24.18, -39.72)
CIE-LCHlch(19.46, 46.50, 301.33°)
OKLaboklab(31.57% 0.0215 -0.1141)
OKLCHoklch(31.57% 0.116 280.7)
XYZxyz(4.2171, 2.8557, 13.9619)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A256A #656A25
analogous
#25426A #2A256A #4C256A
triadic
#2A256A #6A2A25 #256A2A
tetradic
#2A256A #6A2542 #656A25 #256A4C
square
#2A256A #6A2542 #656A25 #256A4C
split-complementary
#2A256A #6A4C25 #426A25
monochromatic
#090817 #18153D #2A256A #3C3597 #524AC0

Accessibility & contrast

On white

13.37
#2A256A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2A256A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A256A
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A256A#FFFFFF#000000##FFFFFF
##2A256A1.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326C
Deuteranopia (green-blind)
#002D69
Tritanopia (blue-blind)
#063643
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a256a;
/* rgb */ color: rgb(42, 37, 106);
/* oklch */ color: oklch(31.6% 0.116 280.7);
Tailwind
colors: {
  custom: {
    50: '#6b6095',
    500: '#2a256a',
    950: '#000000',
  },
}
SCSS
$custom: #2a256a;
$custom-light: #6b6095;
$custom-dark: #000000;
JSON
{
  "hex": "#2a256a",
  "rgb": {
    "r": 42,
    "g": 37,
    "b": 106
  },
  "hsl": {
    "h": 244.348,
    "s": 48.252,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31567,
    "c": 0.11613,
    "h": 280.7
  },
  "luminance": 0.02856
}

Semantic roles & 50–950 ramp

primary
#2A256A
secondary
#979D4E
accent
#D850CE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2A256A

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

Preview Lab → · Contrast checker → · Palette generator →

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