#2A256F#2A256F

#2A256F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.0% C 0.123 H 279.9°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#2A256F
RGBrgb(42, 37, 111)
HSLhsl(244, 50%, 29%)
HSVhsv(244, 67%, 44%)
CMYKcmyk(62.2%, 66.7%, 0%, 56.5%)
CIE-LABlab(19.89, 25.96, -42.25)
CIE-LCHlch(19.89, 49.59, 301.57°)
OKLaboklab(32.02% 0.0211 -0.1216)
OKLCHoklch(32.02% 0.123 279.9)
XYZxyz(4.4847, 2.9628, 15.3714)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A256F #6A6F25
analogous
#25456F #2A256F #4F256F
triadic
#2A256F #6F2A25 #256F2A
tetradic
#2A256F #6F2545 #6A6F25 #256F4F
square
#2A256F #6F2545 #6A6F25 #256F4F
split-complementary
#2A256F #6F4F25 #456F25
monochromatic
#090817 #191641 #2A256F #3B349D #534BC3

Accessibility & contrast

On white

13.19
#2A256F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2A256F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A256F
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A256F#FFFFFF#000000##FFFFFF
##2A256F1.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#002D6E
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a256f;
/* rgb */ color: rgb(42, 37, 111);
/* oklch */ color: oklch(32.0% 0.123 279.9);
Tailwind
colors: {
  custom: {
    50: '#6c6099',
    500: '#2a256f',
    950: '#000000',
  },
}
SCSS
$custom: #2a256f;
$custom-light: #6c6099;
$custom-dark: #000000;
JSON
{
  "hex": "#2a256f",
  "rgb": {
    "r": 42,
    "g": 37,
    "b": 111
  },
  "hsl": {
    "h": 244.054,
    "s": 50,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32023,
    "c": 0.12338,
    "h": 279.9
  },
  "luminance": 0.02963
}

Semantic roles & 50–950 ramp

primary
#2A256F
secondary
#9CA24E
accent
#DA4ED0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #2A256F

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

Preview Lab → · Contrast checker → · Palette generator →

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