#2A255E#2A255E

#2A255E is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.5% C 0.098 H 282.9°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#2A255E
RGBrgb(42, 37, 94)
HSLhsl(245, 44%, 26%)
HSVhsv(245, 61%, 37%)
CMYKcmyk(55.3%, 60.6%, 0%, 63.1%)
CIE-LABlab(18.47, 19.91, -33.45)
CIE-LCHlch(18.47, 38.92, 300.77°)
OKLaboklab(30.53% 0.0219 -0.0957)
OKLCHoklch(30.53% 0.098 282.9)
XYZxyz(3.6362, 2.6233, 10.9023)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A255E #595E25
analogous
#253C5E #2A255E #46255E
triadic
#2A255E #5E2A25 #255E2A
tetradic
#2A255E #5E253C #595E25 #255E46
square
#2A255E #5E253C #595E25 #255E46
split-complementary
#2A255E #5E4625 #3C5E25
monochromatic
#0A0916 #161432 #2A255E #3E368A #5148B6

Accessibility & contrast

On white

13.77
#2A255E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A255E
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A255E#FFFFFF#000000##FFFFFF
##2A255E1.0013.771.5213.77
#FFFFFF13.771.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F60
Deuteranopia (green-blind)
#002B5D
Tritanopia (blue-blind)
#15323D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2a255e;
/* rgb */ color: rgb(42, 37, 94);
/* oklch */ color: oklch(30.5% 0.098 282.9);
Tailwind
colors: {
  custom: {
    50: '#695f8c',
    500: '#2a255e',
    950: '#000000',
  },
}
SCSS
$custom: #2a255e;
$custom-light: #695f8c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a255e",
  "rgb": {
    "r": 42,
    "g": 37,
    "b": 94
  },
  "hsl": {
    "h": 245.263,
    "s": 43.511,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30526,
    "c": 0.09813,
    "h": 282.9
  },
  "luminance": 0.02624
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A255E

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

Preview Lab → · Contrast checker → · Palette generator →

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