#2A256B#2A256B

#2A256B is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.7% C 0.118 H 280.5°. Best body text is #FFFFFF at 13.33:1 contrast (WCAG AA passes).

Color values

HEX#2A256B
RGBrgb(42, 37, 107)
HSLhsl(244, 49%, 28%)
HSVhsv(244, 65%, 42%)
CMYKcmyk(60.7%, 65.4%, 0%, 58%)
CIE-LABlab(19.54, 24.54, -40.23)
CIE-LCHlch(19.54, 47.12, 301.38°)
OKLaboklab(31.66% 0.0214 -0.1156)
OKLCHoklch(31.66% 0.118 280.5)
XYZxyz(4.2694, 2.8766, 14.2373)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A256B #666B25
analogous
#25436B #2A256B #4D256B
triadic
#2A256B #6B2A25 #256B2A
tetradic
#2A256B #6B2543 #666B25 #256B4D
square
#2A256B #6B2543 #666B25 #256B4D
split-complementary
#2A256B #6B4D25 #436B25
monochromatic
#090817 #18153E #2A256B #3C3598 #524AC0

Accessibility & contrast

On white

13.33
#2A256B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2A256B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A256B
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A256B#FFFFFF#000000##FFFFFF
##2A256B1.0013.331.5813.33
#FFFFFF13.331.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326D
Deuteranopia (green-blind)
#002D6A
Tritanopia (blue-blind)
#043644
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a256b;
/* rgb */ color: rgb(42, 37, 107);
/* oklch */ color: oklch(31.7% 0.118 280.5);
Tailwind
colors: {
  custom: {
    50: '#6b6096',
    500: '#2a256b',
    950: '#000000',
  },
}
SCSS
$custom: #2a256b;
$custom-light: #6b6096;
$custom-dark: #000000;
JSON
{
  "hex": "#2a256b",
  "rgb": {
    "r": 42,
    "g": 37,
    "b": 107
  },
  "hsl": {
    "h": 244.286,
    "s": 48.611,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31657,
    "c": 0.11759,
    "h": 280.5
  },
  "luminance": 0.02877
}

Semantic roles & 50–950 ramp

primary
#2A256B
secondary
#989E4E
accent
#D850CE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2A256B

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

Preview Lab → · Contrast checker → · Palette generator →

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