#2A4089#2A4089

#2A4089 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.7% C 0.125 H 267.7°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#2A4089
RGBrgb(42, 64, 137)
HSLhsl(226, 53%, 35%)
HSVhsv(226, 69%, 54%)
CMYKcmyk(69.3%, 53.3%, 0%, 46.3%)
CIE-LABlab(29.32, 17.20, -43.39)
CIE-LCHlch(29.32, 46.67, 291.62°)
OKLaboklab(39.7% -0.0049 -0.1246)
OKLCHoklch(39.7% 0.125 267.7)
XYZxyz(7.3020, 5.9645, 24.4285)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4089 #89732A
analogous
#2A7089 #2A4089 #432A89
triadic
#2A4089 #892A40 #40892A
tetradic
#2A4089 #892A70 #89732A #2A8943
square
#2A4089 #892A70 #89732A #2A8943
split-complementary
#2A4089 #89432A #70892A
monochromatic
#0D142B #1C2A5A #2A4089 #3856B8 #5F79CE

Accessibility & contrast

On white

9.58
#2A4089 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2A4089 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4089
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4089#FFFFFF#000000##FFFFFF
##2A40891.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124A8C
Deuteranopia (green-blind)
#004188
Tritanopia (blue-blind)
#00515E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a4089;
/* rgb */ color: rgb(42, 64, 137);
/* oklch */ color: oklch(39.7% 0.125 267.7);
Tailwind
colors: {
  custom: {
    50: '#6f74ac',
    500: '#2a4089',
    950: '#000000',
  },
}
SCSS
$custom: #2a4089;
$custom-light: #6f74ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4089",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 137
  },
  "hsl": {
    "h": 226.105,
    "s": 53.073,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39702,
    "c": 0.12469,
    "h": 267.7
  },
  "luminance": 0.05965
}

Semantic roles & 50–950 ramp

primary
#2A4089
secondary
#B49F5B
accent
#BB4BDC
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2A4089

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

Preview Lab → · Contrast checker → · Palette generator →

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