#2A4197#2A4197

#2A4197 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.0% C 0.144 H 268.1°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#2A4197
RGBrgb(42, 65, 151)
HSLhsl(227, 56%, 38%)
HSVhsv(227, 72%, 59%)
CMYKcmyk(72.2%, 57%, 0%, 40.8%)
CIE-LABlab(30.66, 21.87, -49.82)
CIE-LCHlch(30.66, 54.41, 293.70°)
OKLaboklab(41.04% -0.0048 -0.1435)
OKLCHoklch(41.04% 0.144 268.1)
XYZxyz(8.4291, 6.5063, 30.0838)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4197 #97802A
analogous
#2A7897 #2A4197 #492A97
triadic
#2A4197 #972A41 #41972A
tetradic
#2A4197 #972A78 #97802A #2A9749
square
#2A4197 #972A78 #97802A #2A9749
split-complementary
#2A4197 #97492A #78972A
monochromatic
#0F1837 #1D2C67 #2A4197 #3756C7 #677ED5

Accessibility & contrast

On white

9.12
#2A4197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2A4197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4197
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4197#FFFFFF#000000##FFFFFF
##2A41971.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9A
Deuteranopia (green-blind)
#004395
Tritanopia (blue-blind)
#005665
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a4197;
/* rgb */ color: rgb(42, 65, 151);
/* oklch */ color: oklch(41.0% 0.144 268.1);
Tailwind
colors: {
  custom: {
    50: '#7275b6',
    500: '#2a4197',
    950: '#000000',
  },
}
SCSS
$custom: #2a4197;
$custom-light: #7275b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4197",
  "rgb": {
    "r": 42,
    "g": 65,
    "b": 151
  },
  "hsl": {
    "h": 227.339,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.4104,
    "c": 0.14359,
    "h": 268.1
  },
  "luminance": 0.06507
}

Semantic roles & 50–950 ramp

primary
#2A4197
secondary
#BBA862
accent
#C048E0
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2A4197

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

Preview Lab → · Contrast checker → · Palette generator →

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