#2A4297#2A4297

#2A4297 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.2% C 0.142 H 267.7°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#2A4297
RGBrgb(42, 66, 151)
HSLhsl(227, 56%, 38%)
HSVhsv(227, 72%, 59%)
CMYKcmyk(72.2%, 56.3%, 0%, 40.8%)
CIE-LABlab(30.93, 21.19, -49.38)
CIE-LCHlch(30.93, 53.73, 293.23°)
OKLaboklab(41.25% -0.0056 -0.1422)
OKLCHoklch(41.25% 0.142 267.7)
XYZxyz(8.4870, 6.6222, 30.1031)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4297 #977F2A
analogous
#2A7897 #2A4297 #482A97
triadic
#2A4297 #972A42 #42972A
tetradic
#2A4297 #972A78 #977F2A #2A9748
square
#2A4297 #972A78 #977F2A #2A9748
split-complementary
#2A4297 #97482A #78972A
monochromatic
#0F1837 #1D2D67 #2A4297 #3757C7 #677FD5

Accessibility & contrast

On white

9.03
#2A4297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#2A4297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4297
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4297#FFFFFF#000000##FFFFFF
##2A42971.009.032.329.03
#FFFFFF9.031.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a4297;
/* rgb */ color: rgb(42, 66, 151);
/* oklch */ color: oklch(41.2% 0.142 267.7);
Tailwind
colors: {
  custom: {
    50: '#7276b6',
    500: '#2a4297',
    950: '#000000',
  },
}
SCSS
$custom: #2a4297;
$custom-light: #7276b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4297",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 151
  },
  "hsl": {
    "h": 226.789,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41247,
    "c": 0.1423,
    "h": 267.7
  },
  "luminance": 0.06623
}

Semantic roles & 50–950 ramp

primary
#2A4297
secondary
#BBA762
accent
#BE48E0
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2A4297

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

Preview Lab → · Contrast checker → · Palette generator →

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