#2A438A#2A438A

#2A438A is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.4% C 0.122 H 266.4°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#2A438A
RGBrgb(42, 67, 138)
HSLhsl(224, 53%, 35%)
HSVhsv(224, 70%, 54%)
CMYKcmyk(69.6%, 51.4%, 0%, 45.9%)
CIE-LABlab(30.26, 15.53, -42.50)
CIE-LCHlch(30.26, 45.25, 290.08°)
OKLaboklab(40.43% -0.0077 -0.1219)
OKLCHoklch(40.43% 0.122 266.4)
XYZxyz(7.5479, 6.3408, 24.8659)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A438A #8A712A
analogous
#2A738A #2A438A #412A8A
triadic
#2A438A #8A2A43 #438A2A
tetradic
#2A438A #8A2A73 #8A712A #2A8A41
square
#2A438A #8A2A73 #8A712A #2A8A41
split-complementary
#2A438A #8A412A #738A2A
monochromatic
#0D152C #1C2C5B #2A438A #385AB9 #607DCF

Accessibility & contrast

On white

9.26
#2A438A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2A438A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A438A
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A438A#FFFFFF#000000##FFFFFF
##2A438A1.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4C8D
Deuteranopia (green-blind)
#004389
Tritanopia (blue-blind)
#005460
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a438a;
/* rgb */ color: rgb(42, 67, 138);
/* oklch */ color: oklch(40.4% 0.122 266.4);
Tailwind
colors: {
  custom: {
    50: '#6f76ad',
    500: '#2a438a',
    950: '#000000',
  },
}
SCSS
$custom: #2a438a;
$custom-light: #6f76ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2a438a",
  "rgb": {
    "r": 42,
    "g": 67,
    "b": 138
  },
  "hsl": {
    "h": 224.375,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40433,
    "c": 0.12217,
    "h": 266.4
  },
  "luminance": 0.06342
}

Semantic roles & 50–950 ramp

primary
#2A438A
secondary
#B49D5B
accent
#B74BDD
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2A438A

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

Preview Lab → · Contrast checker → · Palette generator →

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