#2A3B98#2A3B98

#2A3B98 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.9% C 0.153 H 270.0°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#2A3B98
RGBrgb(42, 59, 152)
HSLhsl(231, 57%, 38%)
HSVhsv(231, 72%, 60%)
CMYKcmyk(72.4%, 61.2%, 0%, 40.4%)
CIE-LABlab(29.12, 26.29, -52.92)
CIE-LCHlch(29.12, 59.10, 296.42°)
OKLaboklab(39.92% 0.0001 -0.1527)
OKLCHoklch(39.92% 0.153 270)
XYZxyz(8.1844, 5.8863, 30.4045)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3B98 #98872A
analogous
#2A7298 #2A3B98 #502A98
triadic
#2A3B98 #982A3B #3B982A
tetradic
#2A3B98 #982A72 #98872A #2A9850
square
#2A3B98 #982A72 #98872A #2A9850
split-complementary
#2A3B98 #98502A #72982A
monochromatic
#101638 #1D2868 #2A3B98 #374EC8 #6778D5

Accessibility & contrast

On white

9.64
#2A3B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2A3B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3B98
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3B98#FFFFFF#000000##FFFFFF
##2A3B981.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9B
Deuteranopia (green-blind)
#004096
Tritanopia (blue-blind)
#005263
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a3b98;
/* rgb */ color: rgb(42, 59, 152);
/* oklch */ color: oklch(39.9% 0.153 270.0);
Tailwind
colors: {
  custom: {
    50: '#7370b7',
    500: '#2a3b98',
    950: '#000000',
  },
}
SCSS
$custom: #2a3b98;
$custom-light: #7370b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3b98",
  "rgb": {
    "r": 42,
    "g": 59,
    "b": 152
  },
  "hsl": {
    "h": 230.727,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.39922,
    "c": 0.15271,
    "h": 270
  },
  "luminance": 0.05887
}

Semantic roles & 50–950 ramp

primary
#2A3B98
secondary
#BBAE62
accent
#C848E0
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2A3B98

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

Preview Lab → · Contrast checker → · Palette generator →

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