#2A347D#2A347D

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

Color values

HEX#2A347D
RGBrgb(42, 52, 125)
HSLhsl(233, 50%, 33%)
HSVhsv(233, 66%, 49%)
CMYKcmyk(66.4%, 58.4%, 0%, 51%)
CIE-LABlab(25.04, 20.89, -42.82)
CIE-LCHlch(25.04, 47.65, 296.00°)
OKLaboklab(36.19% 0.0059 -0.1231)
OKLCHoklch(36.19% 0.123 272.8)
XYZxyz(5.8833, 4.4284, 19.9428)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A347D #7D732A
analogous
#2A5D7D #2A347D #492A7D
triadic
#2A347D #7D2A34 #347D2A
tetradic
#2A347D #7D2A5D #7D732A #2A7D49
square
#2A347D #7D2A5D #7D732A #2A7D49
split-complementary
#2A347D #7D492A #5D7D2A
monochromatic
#0B0E21 #1B214F #2A347D #3947AB #5A67C8

Accessibility & contrast

On white

11.14
#2A347D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2A347D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A347D
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A347D#FFFFFF#000000##FFFFFF
##2A347D1.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7F
Deuteranopia (green-blind)
#00387C
Tritanopia (blue-blind)
#004653
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a347d;
/* rgb */ color: rgb(42, 52, 125);
/* oklch */ color: oklch(36.2% 0.123 272.8);
Tailwind
colors: {
  custom: {
    50: '#6e6ba3',
    500: '#2a347d',
    950: '#000000',
  },
}
SCSS
$custom: #2a347d;
$custom-light: #6e6ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a347d",
  "rgb": {
    "r": 42,
    "g": 52,
    "b": 125
  },
  "hsl": {
    "h": 232.771,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.36192,
    "c": 0.12325,
    "h": 272.8
  },
  "luminance": 0.04429
}

Semantic roles & 50–950 ramp

primary
#2A347D
secondary
#ADA356
accent
#C94FD9
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #2A347D

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

Preview Lab → · Contrast checker → · Palette generator →

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