#2A3C98#2A3C98

#2A3C98 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.1% C 0.151 H 269.8°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#2A3C98
RGBrgb(42, 60, 152)
HSLhsl(230, 57%, 38%)
HSVhsv(230, 72%, 60%)
CMYKcmyk(72.4%, 60.5%, 0%, 40.4%)
CIE-LABlab(29.39, 25.62, -52.49)
CIE-LCHlch(29.39, 58.41, 296.02°)
OKLaboklab(40.12% -0.0007 -0.1514)
OKLCHoklch(40.12% 0.151 269.8)
XYZxyz(8.2363, 5.9901, 30.4218)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3C98 #98862A
analogous
#2A7398 #2A3C98 #4F2A98
triadic
#2A3C98 #982A3C #3C982A
tetradic
#2A3C98 #982A73 #98862A #2A984F
square
#2A3C98 #982A73 #98862A #2A984F
split-complementary
#2A3C98 #984F2A #73982A
monochromatic
#101638 #1D2968 #2A3C98 #374FC8 #6779D5

Accessibility & contrast

On white

9.55
#2A3C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2A3C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3C98
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3C98#FFFFFF#000000##FFFFFF
##2A3C981.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a3c98;
/* rgb */ color: rgb(42, 60, 152);
/* oklch */ color: oklch(40.1% 0.151 269.8);
Tailwind
colors: {
  custom: {
    50: '#7371b7',
    500: '#2a3c98',
    950: '#000000',
  },
}
SCSS
$custom: #2a3c98;
$custom-light: #7371b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3c98",
  "rgb": {
    "r": 42,
    "g": 60,
    "b": 152
  },
  "hsl": {
    "h": 230.182,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40118,
    "c": 0.15144,
    "h": 269.8
  },
  "luminance": 0.05991
}

Semantic roles & 50–950 ramp

primary
#2A3C98
secondary
#BBAD62
accent
#C748E0
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2A3C98

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

Preview Lab → · Contrast checker → · Palette generator →

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