#2A4397#2A4397

#2A4397 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.5% C 0.141 H 267.4°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#2A4397
RGBrgb(42, 67, 151)
HSLhsl(226, 56%, 38%)
HSVhsv(226, 72%, 59%)
CMYKcmyk(72.2%, 55.6%, 0%, 40.8%)
CIE-LABlab(31.21, 20.52, -48.93)
CIE-LCHlch(31.21, 53.05, 292.75°)
OKLaboklab(41.46% -0.0064 -0.1408)
OKLCHoklch(41.46% 0.141 267.4)
XYZxyz(8.5460, 6.7400, 30.1227)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4397 #977E2A
analogous
#2A7997 #2A4397 #482A97
triadic
#2A4397 #972A43 #43972A
tetradic
#2A4397 #972A79 #977E2A #2A9748
square
#2A4397 #972A79 #977E2A #2A9748
split-complementary
#2A4397 #97482A #79972A
monochromatic
#0F1937 #1D2E67 #2A4397 #3758C7 #6780D5

Accessibility & contrast

On white

8.94
#2A4397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2A4397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4397
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4397#FFFFFF#000000##FFFFFF
##2A43971.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9A
Deuteranopia (green-blind)
#004595
Tritanopia (blue-blind)
#005766
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a4397;
/* rgb */ color: rgb(42, 67, 151);
/* oklch */ color: oklch(41.5% 0.141 267.4);
Tailwind
colors: {
  custom: {
    50: '#7276b6',
    500: '#2a4397',
    950: '#000000',
  },
}
SCSS
$custom: #2a4397;
$custom-light: #7276b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4397",
  "rgb": {
    "r": 42,
    "g": 67,
    "b": 151
  },
  "hsl": {
    "h": 226.239,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41455,
    "c": 0.141,
    "h": 267.4
  },
  "luminance": 0.06741
}

Semantic roles & 50–950 ramp

primary
#2A4397
secondary
#BBA662
accent
#BD48E0
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2A4397

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

Preview Lab → · Contrast checker → · Palette generator →

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