#2A4288#2A4288

#2A4288 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.1% C 0.121 H 266.7°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#2A4288
RGBrgb(42, 66, 136)
HSLhsl(225, 53%, 35%)
HSVhsv(225, 69%, 53%)
CMYKcmyk(69.1%, 51.5%, 0%, 46.7%)
CIE-LABlab(29.83, 15.45, -41.95)
CIE-LCHlch(29.83, 44.71, 290.22°)
OKLaboklab(40.06% -0.0069 -0.1203)
OKLCHoklch(40.06% 0.121 266.7)
XYZxyz(7.3455, 6.1655, 24.0907)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4288 #88702A
analogous
#2A7188 #2A4288 #412A88
triadic
#2A4288 #882A42 #42882A
tetradic
#2A4288 #882A71 #88702A #2A8841
square
#2A4288 #882A71 #88702A #2A8841
split-complementary
#2A4288 #88412A #71882A
monochromatic
#0D152A #1C2B59 #2A4288 #3859B7 #5F7BCE

Accessibility & contrast

On white

9.40
#2A4288 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2A4288 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4288
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4288#FFFFFF#000000##FFFFFF
##2A42881.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4B8B
Deuteranopia (green-blind)
#004287
Tritanopia (blue-blind)
#00525E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a4288;
/* rgb */ color: rgb(42, 66, 136);
/* oklch */ color: oklch(40.1% 0.121 266.7);
Tailwind
colors: {
  custom: {
    50: '#6f75ab',
    500: '#2a4288',
    950: '#000000',
  },
}
SCSS
$custom: #2a4288;
$custom-light: #6f75ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4288",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 136
  },
  "hsl": {
    "h": 224.681,
    "s": 52.809,
    "l": 34.902
  },
  "oklch": {
    "l": 0.40061,
    "c": 0.12055,
    "h": 266.7
  },
  "luminance": 0.06166
}

Semantic roles & 50–950 ramp

primary
#2A4288
secondary
#B39D5B
accent
#B74CDC
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2A4288

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

Preview Lab → · Contrast checker → · Palette generator →

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