#2A255D#2A255D

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

Color values

HEX#2A255D
RGBrgb(42, 37, 93)
HSLhsl(245, 43%, 25%)
HSVhsv(245, 60%, 36%)
CMYKcmyk(54.8%, 60.2%, 0%, 63.5%)
CIE-LABlab(18.39, 19.56, -32.91)
CIE-LCHlch(18.39, 38.28, 300.72°)
OKLaboklab(30.44% 0.0218 -0.0941)
OKLCHoklch(30.44% 0.097 283.1)
XYZxyz(3.5916, 2.6055, 10.6675)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A255D #585D25
analogous
#253C5D #2A255D #46255D
triadic
#2A255D #5D2A25 #255D2A
tetradic
#2A255D #5D253C #585D25 #255D46
square
#2A255D #5D253C #585D25 #255D46
split-complementary
#2A255D #5D4625 #3C5D25
monochromatic
#0A0916 #161431 #2A255D #3E3689 #5248B5

Accessibility & contrast

On white

13.80
#2A255D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A255D
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A255D#FFFFFF#000000##FFFFFF
##2A255D1.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022F5F
Deuteranopia (green-blind)
#002B5C
Tritanopia (blue-blind)
#16323D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2a255d;
/* rgb */ color: rgb(42, 37, 93);
/* oklch */ color: oklch(30.4% 0.097 283.1);
Tailwind
colors: {
  custom: {
    50: '#685f8b',
    500: '#2a255d',
    950: '#000000',
  },
}
SCSS
$custom: #2a255d;
$custom-light: #685f8b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a255d",
  "rgb": {
    "r": 42,
    "g": 37,
    "b": 93
  },
  "hsl": {
    "h": 245.357,
    "s": 43.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30443,
    "c": 0.09658,
    "h": 283.1
  },
  "luminance": 0.02606
}

Semantic roles & 50–950 ramp

primary
#2A255D
secondary
#8A904D
accent
#D355C8
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #2A255D

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

Preview Lab → · Contrast checker → · Palette generator →

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