#2A4097#2A4097

#2A4097 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.8% C 0.145 H 268.4°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#2A4097
RGBrgb(42, 64, 151)
HSLhsl(228, 56%, 38%)
HSVhsv(228, 72%, 59%)
CMYKcmyk(72.2%, 57.6%, 0%, 40.8%)
CIE-LABlab(30.38, 22.55, -50.27)
CIE-LCHlch(30.38, 55.09, 294.16°)
OKLaboklab(40.84% -0.0039 -0.1448)
OKLCHoklch(40.84% 0.145 268.4)
XYZxyz(8.3722, 6.3925, 30.0648)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4097 #97812A
analogous
#2A7697 #2A4097 #4A2A97
triadic
#2A4097 #972A40 #40972A
tetradic
#2A4097 #972A76 #97812A #2A974A
square
#2A4097 #972A76 #97812A #2A974A
split-complementary
#2A4097 #974A2A #76972A
monochromatic
#0F1737 #1D2C67 #2A4097 #3754C7 #677DD5

Accessibility & contrast

On white

9.22
#2A4097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2A4097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4097
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4097#FFFFFF#000000##FFFFFF
##2A40971.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a4097;
/* rgb */ color: rgb(42, 64, 151);
/* oklch */ color: oklch(40.8% 0.145 268.4);
Tailwind
colors: {
  custom: {
    50: '#7374b6',
    500: '#2a4097',
    950: '#000000',
  },
}
SCSS
$custom: #2a4097;
$custom-light: #7374b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4097",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 151
  },
  "hsl": {
    "h": 227.89,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40835,
    "c": 0.14489,
    "h": 268.4
  },
  "luminance": 0.06393
}

Semantic roles & 50–950 ramp

primary
#2A4097
secondary
#BBA962
accent
#C148E0
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2A4097

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

Preview Lab → · Contrast checker → · Palette generator →

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