#2A258B#2A258B

#2A258B is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.8% C 0.162 H 276.1°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#2A258B
RGBrgb(42, 37, 139)
HSLhsl(243, 58%, 35%)
HSVhsv(243, 73%, 55%)
CMYKcmyk(69.8%, 73.4%, 0%, 45.5%)
CIE-LABlab(22.58, 35.79, -55.62)
CIE-LCHlch(22.58, 66.14, 302.76°)
OKLaboklab(34.78% 0.0171 -0.1607)
OKLCHoklch(34.78% 0.162 276.1)
XYZxyz(6.2751, 3.6789, 24.8005)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A258B #868B25
analogous
#25538B #2A258B #5D258B
triadic
#2A258B #8B2A25 #258B2A
tetradic
#2A258B #8B2553 #868B25 #258B5D
square
#2A258B #8B2553 #868B25 #258B5D
split-complementary
#2A258B #8B5D25 #538B25
monochromatic
#0D0B2A #1B185B #2A258B #3932BB #5E58D3

Accessibility & contrast

On white

12.10
#2A258B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2A258B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A258B
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A258B#FFFFFF#000000##FFFFFF
##2A258B1.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a258b;
/* rgb */ color: rgb(42, 37, 139);
/* oklch */ color: oklch(34.8% 0.162 276.1);
Tailwind
colors: {
  custom: {
    50: '#7261ae',
    500: '#2a258b',
    950: '#000000',
  },
}
SCSS
$custom: #2a258b;
$custom-light: #7261ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2a258b",
  "rgb": {
    "r": 42,
    "g": 37,
    "b": 139
  },
  "hsl": {
    "h": 242.941,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34783,
    "c": 0.16163,
    "h": 276.1
  },
  "luminance": 0.03679
}

Semantic roles & 50–950 ramp

primary
#2A258B
secondary
#B2B755
accent
#E147DA
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2A258B

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

Preview Lab → · Contrast checker → · Palette generator →

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