#2A438B#2A438B

#2A438B is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.5% C 0.124 H 266.5°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#2A438B
RGBrgb(42, 67, 139)
HSLhsl(225, 54%, 35%)
HSVhsv(225, 70%, 55%)
CMYKcmyk(69.8%, 51.8%, 0%, 45.5%)
CIE-LABlab(30.33, 15.92, -43.00)
CIE-LCHlch(30.33, 45.85, 290.31°)
OKLaboklab(40.51% -0.0076 -0.1234)
OKLCHoklch(40.51% 0.124 266.5)
XYZxyz(7.6206, 6.3699, 25.2490)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A438B #8B722A
analogous
#2A738B #2A438B #412A8B
triadic
#2A438B #8B2A43 #438B2A
tetradic
#2A438B #8B2A73 #8B722A #2A8B41
square
#2A438B #8B2A73 #8B722A #2A8B41
split-complementary
#2A438B #8B412A #738B2A
monochromatic
#0E162D #1C2C5C #2A438B #385ABA #607DCF

Accessibility & contrast

On white

9.23
#2A438B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A438B
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A438B#FFFFFF#000000##FFFFFF
##2A438B1.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194C8E
Deuteranopia (green-blind)
#00438A
Tritanopia (blue-blind)
#005460
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a438b;
/* rgb */ color: rgb(42, 67, 139);
/* oklch */ color: oklch(40.5% 0.124 266.5);
Tailwind
colors: {
  custom: {
    50: '#7076ad',
    500: '#2a438b',
    950: '#000000',
  },
}
SCSS
$custom: #2a438b;
$custom-light: #7076ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2a438b",
  "rgb": {
    "r": 42,
    "g": 67,
    "b": 139
  },
  "hsl": {
    "h": 224.536,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40509,
    "c": 0.12364,
    "h": 266.5
  },
  "luminance": 0.06371
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A438B

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

Preview Lab → · Contrast checker → · Palette generator →

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