#2A4088#2A4088

#2A4088 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.6% C 0.123 H 267.7°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#2A4088
RGBrgb(42, 64, 136)
HSLhsl(226, 53%, 35%)
HSVhsv(226, 69%, 53%)
CMYKcmyk(69.1%, 52.9%, 0%, 46.7%)
CIE-LABlab(29.25, 16.82, -42.88)
CIE-LCHlch(29.25, 46.06, 291.41°)
OKLaboklab(39.62% -0.005 -0.1231)
OKLCHoklch(39.62% 0.123 267.7)
XYZxyz(7.2306, 5.9359, 24.0525)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4088 #88722A
analogous
#2A6F88 #2A4088 #432A88
triadic
#2A4088 #882A40 #40882A
tetradic
#2A4088 #882A6F #88722A #2A8843
square
#2A4088 #882A6F #88722A #2A8843
split-complementary
#2A4088 #88432A #6F882A
monochromatic
#0D142A #1C2A59 #2A4088 #3856B7 #5F79CE

Accessibility & contrast

On white

9.60
#2A4088 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A4088
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4088#FFFFFF#000000##FFFFFF
##2A40881.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14498B
Deuteranopia (green-blind)
#004187
Tritanopia (blue-blind)
#00515D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a4088;
/* rgb */ color: rgb(42, 64, 136);
/* oklch */ color: oklch(39.6% 0.123 267.7);
Tailwind
colors: {
  custom: {
    50: '#6f74ab',
    500: '#2a4088',
    950: '#000000',
  },
}
SCSS
$custom: #2a4088;
$custom-light: #6f74ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4088",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 136
  },
  "hsl": {
    "h": 225.957,
    "s": 52.809,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39624,
    "c": 0.12322,
    "h": 267.7
  },
  "luminance": 0.05937
}

Semantic roles & 50–950 ramp

primary
#2A4088
secondary
#B39F5B
accent
#BA4CDC
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2A4088

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

Preview Lab → · Contrast checker → · Palette generator →

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