#2A2598#2A2598

#2A2598 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.2% C 0.178 H 274.7°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#2A2598
RGBrgb(42, 37, 152)
HSLhsl(243, 61%, 37%)
HSVhsv(243, 76%, 60%)
CMYKcmyk(72.4%, 75.7%, 0%, 40.4%)
CIE-LABlab(23.94, 40.21, -61.43)
CIE-LCHlch(23.94, 73.42, 303.21°)
OKLaboklab(36.16% 0.0146 -0.1776)
OKLCHoklch(36.16% 0.178 274.7)
XYZxyz(7.2820, 4.0817, 30.1037)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2598 #939825
analogous
#255998 #2A2598 #642598
triadic
#2A2598 #982A25 #25982A
tetradic
#2A2598 #982559 #939825 #259864
square
#2A2598 #982559 #939825 #259864
split-complementary
#2A2598 #986425 #599825
monochromatic
#0F0D36 #1C1967 #2A2598 #3831C9 #655FD8

Accessibility & contrast

On white

11.56
#2A2598 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2A2598 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2598
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2598#FFFFFF#000000##FFFFFF
##2A25981.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9B
Deuteranopia (green-blind)
#003496
Tritanopia (blue-blind)
#00465D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a2598;
/* rgb */ color: rgb(42, 37, 152);
/* oklch */ color: oklch(36.2% 0.178 274.7);
Tailwind
colors: {
  custom: {
    50: '#7561b7',
    500: '#2a2598',
    950: '#000000',
  },
}
SCSS
$custom: #2a2598;
$custom-light: #7561b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2598",
  "rgb": {
    "r": 42,
    "g": 37,
    "b": 152
  },
  "hsl": {
    "h": 242.609,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36158,
    "c": 0.17825,
    "h": 274.7
  },
  "luminance": 0.04082
}

Semantic roles & 50–950 ramp

primary
#2A2598
secondary
#B9BD5C
accent
#E444DD
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2A2598

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

Preview Lab → · Contrast checker → · Palette generator →

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