#2A3966#2A3966

#2A3966 is a dark, moderate blue. Relative luminance 0.044; OKLCH L 35.6% C 0.081 H 268.2°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#2A3966
RGBrgb(42, 57, 102)
HSLhsl(225, 42%, 28%)
HSVhsv(225, 59%, 40%)
CMYKcmyk(58.8%, 44.1%, 0%, 60%)
CIE-LABlab(24.88, 8.80, -28.40)
CIE-LCHlch(24.88, 29.73, 287.21°)
OKLaboklab(35.55% -0.0025 -0.0806)
OKLCHoklch(35.55% 0.081 268.2)
XYZxyz(4.8154, 4.3774, 13.1590)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3966 #66572A
analogous
#2A5766 #2A3966 #392A66
triadic
#2A3966 #662A39 #39662A
tetradic
#2A3966 #662A57 #66572A #2A6639
square
#2A3966 #662A57 #66572A #2A6639
split-complementary
#2A3966 #66392A #57662A
monochromatic
#090C16 #18213B #2A3966 #3C5191 #526CB8

Accessibility & contrast

On white

11.20
#2A3966 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A3966
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3966#FFFFFF#000000##FFFFFF
##2A39661.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#263E68
Deuteranopia (green-blind)
#1F3965
Tritanopia (blue-blind)
#07434A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a3966;
/* rgb */ color: rgb(42, 57, 102);
/* oklch */ color: oklch(35.6% 0.081 268.2);
Tailwind
colors: {
  custom: {
    50: '#696f92',
    500: '#2a3966',
    950: '#000000',
  },
}
SCSS
$custom: #2a3966;
$custom-light: #696f92;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3966",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 102
  },
  "hsl": {
    "h": 225,
    "s": 41.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35554,
    "c": 0.08068,
    "h": 268.2
  },
  "luminance": 0.04378
}

Semantic roles & 50–950 ramp

primary
#2A3966
secondary
#988754
accent
#B356D1
background
#F6F6F9
surface
#EBECF1
border
#C6C7CB
text
#06070D
muted
#7A7A7E

Preview Lab

Preview with #2A3966

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

Preview Lab → · Contrast checker → · Palette generator →

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