#2A255B#2A255B

#2A255B is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.3% C 0.093 H 283.5°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#2A255B
RGBrgb(42, 37, 91)
HSLhsl(246, 42%, 25%)
HSVhsv(246, 59%, 36%)
CMYKcmyk(53.8%, 59.3%, 0%, 64.3%)
CIE-LABlab(18.23, 18.85, -31.83)
CIE-LCHlch(18.23, 36.99, 300.64°)
OKLaboklab(30.28% 0.0218 -0.0909)
OKLCHoklch(30.28% 0.093 283.5)
XYZxyz(3.5042, 2.5705, 10.2070)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A255B #565B25
analogous
#253B5B #2A255B #45255B
triadic
#2A255B #5B2A25 #255B2A
tetradic
#2A255B #5B253B #565B25 #255B45
square
#2A255B #5B253B #565B25 #255B45
split-complementary
#2A255B #5B4525 #3B5B25
monochromatic
#0A0916 #16132F #2A255B #3E3787 #5248B2

Accessibility & contrast

On white

13.87
#2A255B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2A255B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A255B
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A255B#FFFFFF#000000##FFFFFF
##2A255B1.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052E5D
Deuteranopia (green-blind)
#022B5A
Tritanopia (blue-blind)
#18313C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2a255b;
/* rgb */ color: rgb(42, 37, 91);
/* oklch */ color: oklch(30.3% 0.093 283.5);
Tailwind
colors: {
  custom: {
    50: '#685f8a',
    500: '#2a255b',
    950: '#000000',
  },
}
SCSS
$custom: #2a255b;
$custom-light: #685f8a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a255b",
  "rgb": {
    "r": 42,
    "g": 37,
    "b": 91
  },
  "hsl": {
    "h": 245.556,
    "s": 42.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.30279,
    "c": 0.09349,
    "h": 283.5
  },
  "luminance": 0.02571
}

Semantic roles & 50–950 ramp

primary
#2A255B
secondary
#888E4D
accent
#D256C6
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #2A255B

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

Preview Lab → · Contrast checker → · Palette generator →

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