#2A3864#2A3864

#2A3864 is a dark, moderate blue. Relative luminance 0.042; OKLCH L 35.2% C 0.079 H 268.8°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#2A3864
RGBrgb(42, 56, 100)
HSLhsl(226, 41%, 28%)
HSVhsv(226, 58%, 39%)
CMYKcmyk(58%, 44%, 0%, 60.8%)
CIE-LABlab(24.45, 8.76, -27.79)
CIE-LCHlch(24.45, 29.13, 287.49°)
OKLaboklab(35.18% -0.0016 -0.0789)
OKLCHoklch(35.18% 0.079 268.8)
XYZxyz(4.6685, 4.2403, 12.6266)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3864 #64562A
analogous
#2A5564 #2A3864 #392A64
triadic
#2A3864 #642A38 #38642A
tetradic
#2A3864 #642A55 #64562A #2A6439
square
#2A3864 #642A55 #64562A #2A6439
split-complementary
#2A3864 #64392A #55642A
monochromatic
#090C16 #182039 #2A3864 #3C508F #526AB6

Accessibility & contrast

On white

11.36
#2A3864 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2A3864 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3864
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3864#FFFFFF#000000##FFFFFF
##2A38641.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#263D66
Deuteranopia (green-blind)
#1F3863
Tritanopia (blue-blind)
#0B4249
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a3864;
/* rgb */ color: rgb(42, 56, 100);
/* oklch */ color: oklch(35.2% 0.079 268.8);
Tailwind
colors: {
  custom: {
    50: '#686e90',
    500: '#2a3864',
    950: '#000000',
  },
}
SCSS
$custom: #2a3864;
$custom-light: #686e90;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3864",
  "rgb": {
    "r": 42,
    "g": 56,
    "b": 100
  },
  "hsl": {
    "h": 225.517,
    "s": 40.845,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35182,
    "c": 0.07889,
    "h": 268.8
  },
  "luminance": 0.04241
}

Semantic roles & 50–950 ramp

primary
#2A3864
secondary
#968653
accent
#B357D1
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#06070C
muted
#7A7A7D

Preview Lab

Preview with #2A3864

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

Preview Lab → · Contrast checker → · Palette generator →

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