#2A3198#2A3198

#2A3198 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.1% C 0.165 H 272.6°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#2A3198
RGBrgb(42, 49, 152)
HSLhsl(236, 57%, 38%)
HSVhsv(236, 72%, 60%)
CMYKcmyk(72.4%, 67.8%, 0%, 40.4%)
CIE-LABlab(26.61, 32.88, -57.04)
CIE-LCHlch(26.61, 65.84, 299.96°)
OKLaboklab(38.07% 0.0074 -0.1649)
OKLCHoklch(38.07% 0.165 272.6)
XYZxyz(7.7187, 4.9551, 30.2493)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3198 #98912A
analogous
#2A6898 #2A3198 #5A2A98
triadic
#2A3198 #982A31 #31982A
tetradic
#2A3198 #982A68 #98912A #2A985A
square
#2A3198 #982A68 #98912A #2A985A
split-complementary
#2A3198 #985A2A #68982A
monochromatic
#101238 #1D2268 #2A3198 #3741C8 #676ED5

Accessibility & contrast

On white

10.55
#2A3198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2A3198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3198
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3198#FFFFFF#000000##FFFFFF
##2A31981.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449B
Deuteranopia (green-blind)
#003A96
Tritanopia (blue-blind)
#004C60
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a3198;
/* rgb */ color: rgb(42, 49, 152);
/* oklch */ color: oklch(38.1% 0.165 272.6);
Tailwind
colors: {
  custom: {
    50: '#7469b7',
    500: '#2a3198',
    950: '#000000',
  },
}
SCSS
$custom: #2a3198;
$custom-light: #7469b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3198",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 152
  },
  "hsl": {
    "h": 236.182,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.38072,
    "c": 0.16503,
    "h": 272.6
  },
  "luminance": 0.04956
}

Semantic roles & 50–950 ramp

primary
#2A3198
secondary
#BBB662
accent
#D648E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A3198

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

Preview Lab → · Contrast checker → · Palette generator →

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