#2A3154#2A3154

#2A3154 is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.5% C 0.063 H 273.8°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#2A3154
RGBrgb(42, 49, 84)
HSLhsl(230, 33%, 25%)
HSVhsv(230, 50%, 33%)
CMYKcmyk(50%, 41.7%, 0%, 67.1%)
CIE-LABlab(21.32, 7.89, -22.25)
CIE-LCHlch(21.32, 23.61, 289.53°)
OKLaboklab(32.46% 0.0042 -0.0627)
OKLCHoklch(32.46% 0.063 273.8)
XYZxyz(3.6529, 3.3288, 8.8358)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3154 #544D2A
analogous
#2A4654 #2A3154 #382A54
triadic
#2A3154 #542A31 #31542A
tetradic
#2A3154 #542A46 #544D2A #2A5438
square
#2A3154 #542A46 #544D2A #2A5438
split-complementary
#2A3154 #54382A #46542A
monochromatic
#0A0C14 #16192B #2A3154 #3E497D #5361A6

Accessibility & contrast

On white

12.61
#2A3154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2A3154 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3154
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3154#FFFFFF#000000##FFFFFF
##2A31541.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#243555
Deuteranopia (green-blind)
#203253
Tritanopia (blue-blind)
#1B383E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a3154;
/* rgb */ color: rgb(42, 49, 84);
/* oklch */ color: oklch(32.5% 0.063 273.8);
Tailwind
colors: {
  custom: {
    50: '#666884',
    500: '#2a3154',
    950: '#000000',
  },
}
SCSS
$custom: #2a3154;
$custom-light: #666884;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3154",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 84
  },
  "hsl": {
    "h": 230,
    "s": 33.333,
    "l": 24.706
  },
  "oklch": {
    "l": 0.32458,
    "c": 0.06288,
    "h": 273.8
  },
  "luminance": 0.03329
}

Semantic roles & 50–950 ramp

primary
#2A3154
secondary
#867E53
accent
#B85EC9
background
#F6F6F8
surface
#EBEBEF
border
#C6C6CA
text
#06060B
muted
#7A7A7C

Preview Lab

Preview with #2A3154

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

Preview Lab → · Contrast checker → · Palette generator →

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