#2A3166#2A3166

#2A3166 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.7% C 0.092 H 274.7°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#2A3166
RGBrgb(42, 49, 102)
HSLhsl(233, 42%, 28%)
HSVhsv(233, 59%, 40%)
CMYKcmyk(58.8%, 52%, 0%, 60%)
CIE-LABlab(22.47, 14.39, -32.25)
CIE-LCHlch(22.47, 35.31, 294.05°)
OKLaboklab(33.72% 0.0075 -0.092)
OKLCHoklch(33.72% 0.092 274.7)
XYZxyz(4.4507, 3.6479, 13.0374)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3166 #665F2A
analogous
#2A4F66 #2A3166 #412A66
triadic
#2A3166 #662A31 #31662A
tetradic
#2A3166 #662A4F #665F2A #2A6641
square
#2A3166 #662A4F #665F2A #2A6641
split-complementary
#2A3166 #66412A #4F662A
monochromatic
#090A16 #181C3B #2A3166 #3C4691 #525EB8

Accessibility & contrast

On white

12.14
#2A3166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2A3166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3166
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3166#FFFFFF#000000##FFFFFF
##2A31661.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173868
Deuteranopia (green-blind)
#0F3365
Tritanopia (blue-blind)
#0A3D46
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a3166;
/* rgb */ color: rgb(42, 49, 102);
/* oklch */ color: oklch(33.7% 0.092 274.7);
Tailwind
colors: {
  custom: {
    50: '#696892',
    500: '#2a3166',
    950: '#000000',
  },
}
SCSS
$custom: #2a3166;
$custom-light: #696892;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3166",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 102
  },
  "hsl": {
    "h": 233,
    "s": 41.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33715,
    "c": 0.09234,
    "h": 274.7
  },
  "luminance": 0.03648
}

Semantic roles & 50–950 ramp

primary
#2A3166
secondary
#989054
accent
#C356D1
background
#F6F6F9
surface
#EBEBF1
border
#C6C6CB
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #2A3166

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

Preview Lab → · Contrast checker → · Palette generator →

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