#2A258D#2A258D

#2A258D is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.0% C 0.164 H 275.9°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#2A258D
RGBrgb(42, 37, 141)
HSLhsl(243, 58%, 35%)
HSVhsv(243, 74%, 55%)
CMYKcmyk(70.2%, 73.8%, 0%, 44.7%)
CIE-LABlab(22.79, 36.48, -56.53)
CIE-LCHlch(22.79, 67.28, 302.83°)
OKLaboklab(34.99% 0.0168 -0.1634)
OKLCHoklch(34.99% 0.164 275.9)
XYZxyz(6.4226, 3.7379, 25.5772)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A258D #888D25
analogous
#25548D #2A258D #5E258D
triadic
#2A258D #8D2A25 #258D2A
tetradic
#2A258D #8D2554 #888D25 #258D5E
square
#2A258D #8D2554 #888D25 #258D5E
split-complementary
#2A258D #8D5E25 #548D25
monochromatic
#0D0C2C #1C185D #2A258D #3832BD #5F59D3

Accessibility & contrast

On white

12.02
#2A258D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2A258D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A258D
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A258D#FFFFFF#000000##FFFFFF
##2A258D1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#00328B
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a258d;
/* rgb */ color: rgb(42, 37, 141);
/* oklch */ color: oklch(35.0% 0.164 275.9);
Tailwind
colors: {
  custom: {
    50: '#7361af',
    500: '#2a258d',
    950: '#000000',
  },
}
SCSS
$custom: #2a258d;
$custom-light: #7361af;
$custom-dark: #000000;
JSON
{
  "hex": "#2a258d",
  "rgb": {
    "r": 42,
    "g": 37,
    "b": 141
  },
  "hsl": {
    "h": 242.885,
    "s": 58.427,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34991,
    "c": 0.16423,
    "h": 275.9
  },
  "luminance": 0.03738
}

Semantic roles & 50–950 ramp

primary
#2A258D
secondary
#B3B856
accent
#E246DA
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #2A258D

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

Preview Lab → · Contrast checker → · Palette generator →

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