#2A438D#2A438D

#2A438D is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.7% C 0.127 H 266.7°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#2A438D
RGBrgb(42, 67, 141)
HSLhsl(225, 54%, 36%)
HSVhsv(225, 70%, 55%)
CMYKcmyk(70.2%, 52.5%, 0%, 44.7%)
CIE-LABlab(30.47, 16.68, -44.00)
CIE-LCHlch(30.47, 47.06, 290.77°)
OKLaboklab(40.66% -0.0073 -0.1264)
OKLCHoklch(40.66% 0.127 266.7)
XYZxyz(7.7681, 6.4289, 26.0257)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A438D #8D742A
analogous
#2A748D #2A438D #422A8D
triadic
#2A438D #8D2A43 #438D2A
tetradic
#2A438D #8D2A74 #8D742A #2A8D42
square
#2A438D #8D2A74 #8D742A #2A8D42
split-complementary
#2A438D #8D422A #748D2A
monochromatic
#0E162F #1C2D5E #2A438D #3859BC #617DD0

Accessibility & contrast

On white

9.19
#2A438D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2A438D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A438D
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A438D#FFFFFF#000000##FFFFFF
##2A438D1.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164C90
Deuteranopia (green-blind)
#00438B
Tritanopia (blue-blind)
#005461
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a438d;
/* rgb */ color: rgb(42, 67, 141);
/* oklch */ color: oklch(40.7% 0.127 266.7);
Tailwind
colors: {
  custom: {
    50: '#7076af',
    500: '#2a438d',
    950: '#000000',
  },
}
SCSS
$custom: #2a438d;
$custom-light: #7076af;
$custom-dark: #000000;
JSON
{
  "hex": "#2a438d",
  "rgb": {
    "r": 42,
    "g": 67,
    "b": 141
  },
  "hsl": {
    "h": 224.848,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40663,
    "c": 0.12657,
    "h": 266.7
  },
  "luminance": 0.0643
}

Semantic roles & 50–950 ramp

primary
#2A438D
secondary
#B69F5D
accent
#B84ADD
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2A438D

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

Preview Lab → · Contrast checker → · Palette generator →

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