#2A255C#2A255C

#2A255C is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.4% C 0.095 H 283.3°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#2A255C
RGBrgb(42, 37, 92)
HSLhsl(245, 43%, 25%)
HSVhsv(245, 60%, 36%)
CMYKcmyk(54.3%, 59.8%, 0%, 63.9%)
CIE-LABlab(18.31, 19.20, -32.37)
CIE-LCHlch(18.31, 37.64, 300.68°)
OKLaboklab(30.36% 0.0218 -0.0925)
OKLCHoklch(30.36% 0.095 283.3)
XYZxyz(3.5476, 2.5879, 10.4357)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A255C #575C25
analogous
#253B5C #2A255C #46255C
triadic
#2A255C #5C2A25 #255C2A
tetradic
#2A255C #5C253B #575C25 #255C46
square
#2A255C #5C253B #575C25 #255C46
split-complementary
#2A255C #5C4625 #3B5C25
monochromatic
#0A0916 #161330 #2A255C #3E3788 #5248B3

Accessibility & contrast

On white

13.84
#2A255C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2A255C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A255C
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A255C#FFFFFF#000000##FFFFFF
##2A255C1.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042E5E
Deuteranopia (green-blind)
#002B5B
Tritanopia (blue-blind)
#17313C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2a255c;
/* rgb */ color: rgb(42, 37, 92);
/* oklch */ color: oklch(30.4% 0.095 283.3);
Tailwind
colors: {
  custom: {
    50: '#685f8b',
    500: '#2a255c',
    950: '#000000',
  },
}
SCSS
$custom: #2a255c;
$custom-light: #685f8b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a255c",
  "rgb": {
    "r": 42,
    "g": 37,
    "b": 92
  },
  "hsl": {
    "h": 245.455,
    "s": 42.636,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30361,
    "c": 0.09504,
    "h": 283.3
  },
  "luminance": 0.02588
}

Semantic roles & 50–950 ramp

primary
#2A255C
secondary
#898F4D
accent
#D255C7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #2A255C

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

Preview Lab → · Contrast checker → · Palette generator →

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