#2A4064#2A4064

#2A4064 is a dark, moderate blue. Relative luminance 0.051; OKLCH L 37.1% C 0.068 H 259.9°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#2A4064
RGBrgb(42, 64, 100)
HSLhsl(217, 41%, 28%)
HSVhsv(217, 58%, 39%)
CMYKcmyk(58%, 36%, 0%, 60.8%)
CIE-LABlab(26.96, 3.27, -23.82)
CIE-LCHlch(26.96, 24.05, 277.82°)
OKLaboklab(37.12% -0.012 -0.0672)
OKLCHoklch(37.12% 0.068 259.9)
XYZxyz(5.0877, 5.0787, 12.7663)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4064 #644E2A
analogous
#2A5D64 #2A4064 #312A64
triadic
#2A4064 #642A40 #40642A
tetradic
#2A4064 #642A5D #644E2A #2A6431
square
#2A4064 #642A5D #644E2A #2A6431
split-complementary
#2A4064 #64312A #5D642A
monochromatic
#090E16 #182439 #2A4064 #3C5C8F #5278B6

Accessibility & contrast

On white

10.42
#2A4064 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2A4064 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4064
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4064#FFFFFF#000000##FFFFFF
##2A40641.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324366
Deuteranopia (green-blind)
#2A3D63
Tritanopia (blue-blind)
#08484D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a4064;
/* rgb */ color: rgb(42, 64, 100);
/* oklch */ color: oklch(37.1% 0.068 259.9);
Tailwind
colors: {
  custom: {
    50: '#687490',
    500: '#2a4064',
    950: '#000000',
  },
}
SCSS
$custom: #2a4064;
$custom-light: #687490;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4064",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 100
  },
  "hsl": {
    "h": 217.241,
    "s": 40.845,
    "l": 27.843
  },
  "oklch": {
    "l": 0.37123,
    "c": 0.06828,
    "h": 259.9
  },
  "luminance": 0.05079
}

Semantic roles & 50–950 ramp

primary
#2A4064
secondary
#967D53
accent
#A357D1
background
#F6F7F8
surface
#EBEDF0
border
#C6C8CB
text
#06080C
muted
#7A7B7D

Preview Lab

Preview with #2A4064

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

Preview Lab → · Contrast checker → · Palette generator →

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