#2A438F#2A438F

#2A438F is a dark, vivid blue. Relative luminance 0.065; OKLCH L 40.8% C 0.129 H 266.8°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#2A438F
RGBrgb(42, 67, 143)
HSLhsl(225, 55%, 36%)
HSVhsv(225, 71%, 56%)
CMYKcmyk(70.6%, 53.1%, 0%, 43.9%)
CIE-LABlab(30.61, 17.45, -45.00)
CIE-LCHlch(30.61, 48.26, 291.20°)
OKLaboklab(40.82% -0.0071 -0.1293)
OKLCHoklch(40.82% 0.129 266.8)
XYZxyz(7.9182, 6.4889, 26.8165)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A438F #8F762A
analogous
#2A768F #2A438F #442A8F
triadic
#2A438F #8F2A43 #438F2A
tetradic
#2A438F #8F2A76 #8F762A #2A8F44
square
#2A438F #8F2A76 #8F762A #2A8F44
split-complementary
#2A438F #8F442A #768F2A
monochromatic
#0E1730 #1C2D60 #2A438F #3859BE #627ED1

Accessibility & contrast

On white

9.14
#2A438F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2A438F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A438F
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A438F#FFFFFF#000000##FFFFFF
##2A438F1.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134D92
Deuteranopia (green-blind)
#00448D
Tritanopia (blue-blind)
#005562
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a438f;
/* rgb */ color: rgb(42, 67, 143);
/* oklch */ color: oklch(40.8% 0.129 266.8);
Tailwind
colors: {
  custom: {
    50: '#7176b0',
    500: '#2a438f',
    950: '#000000',
  },
}
SCSS
$custom: #2a438f;
$custom-light: #7176b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a438f",
  "rgb": {
    "r": 42,
    "g": 67,
    "b": 143
  },
  "hsl": {
    "h": 225.149,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40819,
    "c": 0.12949,
    "h": 266.8
  },
  "luminance": 0.0649
}

Semantic roles & 50–950 ramp

primary
#2A438F
secondary
#B7A15E
accent
#B94ADE
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080811
muted
#7B7B80

Preview Lab

Preview with #2A438F

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

Preview Lab → · Contrast checker → · Palette generator →

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