#2A4296#2A4296

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

Color values

HEX#2A4296
RGBrgb(42, 66, 150)
HSLhsl(227, 56%, 38%)
HSVhsv(227, 72%, 59%)
CMYKcmyk(72%, 56%, 0%, 41.2%)
CIE-LABlab(30.85, 20.81, -48.89)
CIE-LCHlch(30.85, 53.14, 293.06°)
OKLaboklab(41.17% -0.0057 -0.1408)
OKLCHoklch(41.17% 0.141 267.7)
XYZxyz(8.4062, 6.5898, 29.6772)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4296 #967E2A
analogous
#2A7896 #2A4296 #482A96
triadic
#2A4296 #962A42 #42962A
tetradic
#2A4296 #962A78 #967E2A #2A9648
square
#2A4296 #962A78 #967E2A #2A9648
split-complementary
#2A4296 #96482A #78962A
monochromatic
#0F1836 #1D2D66 #2A4296 #3757C6 #667FD4

Accessibility & contrast

On white

9.06
#2A4296 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A4296
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4296#FFFFFF#000000##FFFFFF
##2A42961.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E99
Deuteranopia (green-blind)
#004494
Tritanopia (blue-blind)
#005665
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a4296;
/* rgb */ color: rgb(42, 66, 150);
/* oklch */ color: oklch(41.2% 0.141 267.7);
Tailwind
colors: {
  custom: {
    50: '#7276b5',
    500: '#2a4296',
    950: '#000000',
  },
}
SCSS
$custom: #2a4296;
$custom-light: #7276b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4296",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 150
  },
  "hsl": {
    "h": 226.667,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41165,
    "c": 0.14087,
    "h": 267.7
  },
  "luminance": 0.06591
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A4296

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

Preview Lab → · Contrast checker → · Palette generator →

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