#2A258A#2A258A

#2A258A is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.160 H 276.2°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#2A258A
RGBrgb(42, 37, 138)
HSLhsl(243, 58%, 34%)
HSVhsv(243, 73%, 54%)
CMYKcmyk(69.6%, 73.2%, 0%, 45.9%)
CIE-LABlab(22.48, 35.45, -55.17)
CIE-LCHlch(22.48, 65.57, 302.72°)
OKLaboklab(34.68% 0.0173 -0.1594)
OKLCHoklch(34.68% 0.16 276.2)
XYZxyz(6.2024, 3.6498, 24.4175)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A258A #858A25
analogous
#25538A #2A258A #5D258A
triadic
#2A258A #8A2A25 #258A2A
tetradic
#2A258A #8A2553 #858A25 #258A5D
square
#2A258A #8A2553 #858A25 #258A5D
split-complementary
#2A258A #8A5D25 #538A25
monochromatic
#0D0B29 #1B185A #2A258A #3932BA #5D57D2

Accessibility & contrast

On white

12.14
#2A258A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2A258A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A258A
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A258A#FFFFFF#000000##FFFFFF
##2A258A1.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003188
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a258a;
/* rgb */ color: rgb(42, 37, 138);
/* oklch */ color: oklch(34.7% 0.160 276.2);
Tailwind
colors: {
  custom: {
    50: '#7261ad',
    500: '#2a258a',
    950: '#000000',
  },
}
SCSS
$custom: #2a258a;
$custom-light: #7261ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2a258a",
  "rgb": {
    "r": 42,
    "g": 37,
    "b": 138
  },
  "hsl": {
    "h": 242.97,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.3468,
    "c": 0.16032,
    "h": 276.2
  },
  "luminance": 0.0365
}

Semantic roles & 50–950 ramp

primary
#2A258A
secondary
#B2B754
accent
#E147D9
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2A258A

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

Preview Lab → · Contrast checker → · Palette generator →

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