#2A3C9C#2A3C9C

#2A3C9C is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.5% C 0.157 H 269.8°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#2A3C9C
RGBrgb(42, 60, 156)
HSLhsl(231, 58%, 39%)
HSVhsv(231, 73%, 61%)
CMYKcmyk(73.1%, 61.5%, 0%, 38.8%)
CIE-LABlab(29.72, 27.13, -54.39)
CIE-LCHlch(29.72, 60.77, 296.51°)
OKLaboklab(40.47% -0.0007 -0.157)
OKLCHoklch(40.47% 0.157 269.8)
XYZxyz(8.5694, 6.1234, 32.1764)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3C9C #9C8A2A
analogous
#2A759C #2A3C9C #512A9C
triadic
#2A3C9C #9C2A3C #3C9C2A
tetradic
#2A3C9C #9C2A75 #9C8A2A #2A9C51
square
#2A3C9C #9C2A75 #9C8A2A #2A9C51
split-complementary
#2A3C9C #9C512A #759C2A
monochromatic
#10173C #1D296C #2A3C9C #3950CA #6A7BD7

Accessibility & contrast

On white

9.44
#2A3C9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2A3C9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3C9C
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3C9C#FFFFFF#000000##FFFFFF
##2A3C9C1.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9F
Deuteranopia (green-blind)
#00419A
Tritanopia (blue-blind)
#005466
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a3c9c;
/* rgb */ color: rgb(42, 60, 156);
/* oklch */ color: oklch(40.5% 0.157 269.8);
Tailwind
colors: {
  custom: {
    50: '#7471ba',
    500: '#2a3c9c',
    950: '#000000',
  },
}
SCSS
$custom: #2a3c9c;
$custom-light: #7471ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3c9c",
  "rgb": {
    "r": 42,
    "g": 60,
    "b": 156
  },
  "hsl": {
    "h": 230.526,
    "s": 57.576,
    "l": 38.824
  },
  "oklch": {
    "l": 0.4047,
    "c": 0.15699,
    "h": 269.8
  },
  "luminance": 0.06124
}

Semantic roles & 50–950 ramp

primary
#2A3C9C
secondary
#BDAF65
accent
#C947E1
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #2A3C9C

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

Preview Lab → · Contrast checker → · Palette generator →

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