#2A258C#2A258C

#2A258C is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.9% C 0.163 H 276.0°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#2A258C
RGBrgb(42, 37, 140)
HSLhsl(243, 58%, 35%)
HSVhsv(243, 74%, 55%)
CMYKcmyk(70%, 73.6%, 0%, 45.1%)
CIE-LABlab(22.68, 36.13, -56.08)
CIE-LCHlch(22.68, 66.71, 302.79°)
OKLaboklab(34.89% 0.0169 -0.162)
OKLCHoklch(34.89% 0.163 276)
XYZxyz(6.3485, 3.7083, 25.1871)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A258C #878C25
analogous
#25538C #2A258C #5E258C
triadic
#2A258C #8C2A25 #258C2A
tetradic
#2A258C #8C2553 #878C25 #258C5E
square
#2A258C #8C2553 #878C25 #258C5E
split-complementary
#2A258C #8C5E25 #538C25
monochromatic
#0D0B2B #1B185C #2A258C #3932BC #5E58D3

Accessibility & contrast

On white

12.06
#2A258C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A258C
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A258C#FFFFFF#000000##FFFFFF
##2A258C1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a258c;
/* rgb */ color: rgb(42, 37, 140);
/* oklch */ color: oklch(34.9% 0.163 276.0);
Tailwind
colors: {
  custom: {
    50: '#7261af',
    500: '#2a258c',
    950: '#000000',
  },
}
SCSS
$custom: #2a258c;
$custom-light: #7261af;
$custom-dark: #000000;
JSON
{
  "hex": "#2a258c",
  "rgb": {
    "r": 42,
    "g": 37,
    "b": 140
  },
  "hsl": {
    "h": 242.913,
    "s": 58.192,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34887,
    "c": 0.16292,
    "h": 276
  },
  "luminance": 0.03709
}

Semantic roles & 50–950 ramp

primary
#2A258C
secondary
#B3B855
accent
#E146DA
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #2A258C

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

Preview Lab → · Contrast checker → · Palette generator →

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