#2A345C#2A345C

#2A345C is a dark, moderate blue. Relative luminance 0.037; OKLCH L 33.7% C 0.072 H 271.5°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#2A345C
RGBrgb(42, 52, 92)
HSLhsl(228, 37%, 26%)
HSVhsv(228, 54%, 36%)
CMYKcmyk(54.3%, 43.5%, 0%, 63.9%)
CIE-LABlab(22.73, 8.63, -25.31)
CIE-LCHlch(22.73, 26.74, 288.84°)
OKLaboklab(33.7% 0.0019 -0.0716)
OKLCHoklch(33.7% 0.072 271.5)
XYZxyz(4.1140, 3.7207, 10.6245)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A345C #5C522A
analogous
#2A4D5C #2A345C #392A5C
triadic
#2A345C #5C2A34 #345C2A
tetradic
#2A345C #5C2A4D #5C522A #2A5C39
square
#2A345C #5C2A4D #5C522A #2A5C39
split-complementary
#2A345C #5C392A #4D5C2A
monochromatic
#0A0C15 #171C32 #2A345C #3D4C86 #5164B0

Accessibility & contrast

On white

12.04
#2A345C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2A345C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A345C
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A345C#FFFFFF#000000##FFFFFF
##2A345C1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24395E
Deuteranopia (green-blind)
#1F345B
Tritanopia (blue-blind)
#153D43
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a345c;
/* rgb */ color: rgb(42, 52, 92);
/* oklch */ color: oklch(33.7% 0.072 271.5);
Tailwind
colors: {
  custom: {
    50: '#676b8a',
    500: '#2a345c',
    950: '#000000',
  },
}
SCSS
$custom: #2a345c;
$custom-light: #676b8a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a345c",
  "rgb": {
    "r": 42,
    "g": 52,
    "b": 92
  },
  "hsl": {
    "h": 228,
    "s": 37.313,
    "l": 26.275
  },
  "oklch": {
    "l": 0.33698,
    "c": 0.07167,
    "h": 271.5
  },
  "luminance": 0.03721
}

Semantic roles & 50–950 ramp

primary
#2A345C
secondary
#8E8353
accent
#B65BCD
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#06060C
muted
#7A7A7D

Preview Lab

Preview with #2A345C

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

Preview Lab → · Contrast checker → · Palette generator →

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