#2A438C#2A438C

#2A438C is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.6% C 0.125 H 266.6°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#2A438C
RGBrgb(42, 67, 140)
HSLhsl(225, 54%, 36%)
HSVhsv(225, 70%, 55%)
CMYKcmyk(70%, 52.1%, 0%, 45.1%)
CIE-LABlab(30.40, 16.30, -43.50)
CIE-LCHlch(30.40, 46.45, 290.54°)
OKLaboklab(40.59% -0.0074 -0.1249)
OKLCHoklch(40.59% 0.125 266.6)
XYZxyz(7.6940, 6.3992, 25.6356)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A438C #8C732A
analogous
#2A748C #2A438C #422A8C
triadic
#2A438C #8C2A43 #438C2A
tetradic
#2A438C #8C2A74 #8C732A #2A8C42
square
#2A438C #8C2A74 #8C732A #2A8C42
split-complementary
#2A438C #8C422A #748C2A
monochromatic
#0E162E #1C2C5D #2A438C #385ABB #617DD0

Accessibility & contrast

On white

9.21
#2A438C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2A438C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A438C
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A438C#FFFFFF#000000##FFFFFF
##2A438C1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a438c;
/* rgb */ color: rgb(42, 67, 140);
/* oklch */ color: oklch(40.6% 0.125 266.6);
Tailwind
colors: {
  custom: {
    50: '#7076ae',
    500: '#2a438c',
    950: '#000000',
  },
}
SCSS
$custom: #2a438c;
$custom-light: #7076ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2a438c",
  "rgb": {
    "r": 42,
    "g": 67,
    "b": 140
  },
  "hsl": {
    "h": 224.694,
    "s": 53.846,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40586,
    "c": 0.1251,
    "h": 266.6
  },
  "luminance": 0.064
}

Semantic roles & 50–950 ramp

primary
#2A438C
secondary
#B59F5C
accent
#B84BDD
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2A438C

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

Preview Lab → · Contrast checker → · Palette generator →

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