#2A256E#2A256E

#2A256E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.9% C 0.122 H 280.0°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#2A256E
RGBrgb(42, 37, 110)
HSLhsl(244, 50%, 29%)
HSVhsv(244, 66%, 43%)
CMYKcmyk(61.8%, 66.4%, 0%, 56.9%)
CIE-LABlab(19.81, 25.60, -41.75)
CIE-LCHlch(19.81, 48.98, 301.52°)
OKLaboklab(31.93% 0.0212 -0.1201)
OKLCHoklch(31.93% 0.122 280)
XYZxyz(4.4300, 2.9409, 15.0830)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A256E #696E25
analogous
#25456E #2A256E #4F256E
triadic
#2A256E #6E2A25 #256E2A
tetradic
#2A256E #6E2545 #696E25 #256E4F
square
#2A256E #6E2545 #696E25 #256E4F
split-complementary
#2A256E #6E4F25 #456E25
monochromatic
#090817 #191640 #2A256E #3B349C #534BC2

Accessibility & contrast

On white

13.22
#2A256E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A256E
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A256E#FFFFFF#000000##FFFFFF
##2A256E1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003370
Deuteranopia (green-blind)
#002D6D
Tritanopia (blue-blind)
#003745
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a256e;
/* rgb */ color: rgb(42, 37, 110);
/* oklch */ color: oklch(31.9% 0.122 280.0);
Tailwind
colors: {
  custom: {
    50: '#6c6098',
    500: '#2a256e',
    950: '#000000',
  },
}
SCSS
$custom: #2a256e;
$custom-light: #6c6098;
$custom-dark: #000000;
JSON
{
  "hex": "#2a256e",
  "rgb": {
    "r": 42,
    "g": 37,
    "b": 110
  },
  "hsl": {
    "h": 244.11,
    "s": 49.66,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31931,
    "c": 0.12194,
    "h": 280
  },
  "luminance": 0.02941
}

Semantic roles & 50–950 ramp

primary
#2A256E
secondary
#9BA14E
accent
#D94FD0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #2A256E

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

Preview Lab → · Contrast checker → · Palette generator →

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