#2A347C#2A347C

#2A347C is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.1% C 0.122 H 272.8°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#2A347C
RGBrgb(42, 52, 124)
HSLhsl(233, 49%, 33%)
HSVhsv(233, 66%, 49%)
CMYKcmyk(66.1%, 58.1%, 0%, 51.4%)
CIE-LABlab(24.96, 20.51, -42.32)
CIE-LCHlch(24.96, 47.03, 295.86°)
OKLaboklab(36.11% 0.0059 -0.1216)
OKLCHoklch(36.11% 0.122 272.8)
XYZxyz(5.8197, 4.4030, 19.6080)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A347C #7C722A
analogous
#2A5D7C #2A347C #492A7C
triadic
#2A347C #7C2A34 #347C2A
tetradic
#2A347C #7C2A5D #7C722A #2A7C49
square
#2A347C #7C2A5D #7C722A #2A7C49
split-complementary
#2A347C #7C492A #5D7C2A
monochromatic
#0B0E21 #1B214E #2A347C #3947AA #5967C7

Accessibility & contrast

On white

11.17
#2A347C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2A347C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A347C
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A347C#FFFFFF#000000##FFFFFF
##2A347C1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7E
Deuteranopia (green-blind)
#00387B
Tritanopia (blue-blind)
#004552
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a347c;
/* rgb */ color: rgb(42, 52, 124);
/* oklch */ color: oklch(36.1% 0.122 272.8);
Tailwind
colors: {
  custom: {
    50: '#6d6ba2',
    500: '#2a347c',
    950: '#000000',
  },
}
SCSS
$custom: #2a347c;
$custom-light: #6d6ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a347c",
  "rgb": {
    "r": 42,
    "g": 52,
    "b": 124
  },
  "hsl": {
    "h": 232.683,
    "s": 49.398,
    "l": 32.549
  },
  "oklch": {
    "l": 0.36108,
    "c": 0.12176,
    "h": 272.8
  },
  "luminance": 0.04403
}

Semantic roles & 50–950 ramp

primary
#2A347C
secondary
#ADA255
accent
#C84FD9
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #2A347C

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

Preview Lab → · Contrast checker → · Palette generator →

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