#2A4181#2A4181

#2A4181 is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.3% C 0.111 H 266.5°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#2A4181
RGBrgb(42, 65, 129)
HSLhsl(224, 51%, 34%)
HSVhsv(224, 67%, 51%)
CMYKcmyk(67.4%, 49.6%, 0%, 49.4%)
CIE-LABlab(29.05, 13.45, -38.86)
CIE-LCHlch(29.05, 41.12, 289.10°)
OKLaboklab(39.31% -0.0069 -0.1113)
OKLCHoklch(39.31% 0.111 266.5)
XYZxyz(6.8062, 5.8572, 21.5365)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4181 #816A2A
analogous
#2A6C81 #2A4181 #3E2A81
triadic
#2A4181 #812A41 #41812A
tetradic
#2A4181 #812A6C #816A2A #2A813E
square
#2A4181 #812A6C #816A2A #2A813E
split-complementary
#2A4181 #813E2A #6C812A
monochromatic
#0C1225 #1B2A53 #2A4181 #3958AF #5C79CA

Accessibility & contrast

On white

9.67
#2A4181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2A4181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4181
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4181#FFFFFF#000000##FFFFFF
##2A41811.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204983
Deuteranopia (green-blind)
#0D4180
Tritanopia (blue-blind)
#00505A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a4181;
/* rgb */ color: rgb(42, 65, 129);
/* oklch */ color: oklch(39.3% 0.111 266.5);
Tailwind
colors: {
  custom: {
    50: '#6e75a6',
    500: '#2a4181',
    950: '#000000',
  },
}
SCSS
$custom: #2a4181;
$custom-light: #6e75a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4181",
  "rgb": {
    "r": 42,
    "g": 65,
    "b": 129
  },
  "hsl": {
    "h": 224.138,
    "s": 50.877,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39314,
    "c": 0.11147,
    "h": 266.5
  },
  "luminance": 0.05858
}

Semantic roles & 50–950 ramp

primary
#2A4181
secondary
#AF9857
accent
#B54DDA
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2A4181

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

Preview Lab → · Contrast checker → · Palette generator →

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