#2A438E#2A438E

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

Color values

HEX#2A438E
RGBrgb(42, 67, 142)
HSLhsl(225, 54%, 36%)
HSVhsv(225, 70%, 56%)
CMYKcmyk(70.4%, 52.8%, 0%, 44.3%)
CIE-LABlab(30.54, 17.07, -44.50)
CIE-LCHlch(30.54, 47.66, 290.98°)
OKLaboklab(40.74% -0.0072 -0.1278)
OKLCHoklch(40.74% 0.128 266.8)
XYZxyz(7.8428, 6.4588, 26.4193)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A438E #8E752A
analogous
#2A758E #2A438E #432A8E
triadic
#2A438E #8E2A43 #438E2A
tetradic
#2A438E #8E2A75 #8E752A #2A8E43
square
#2A438E #8E2A75 #8E752A #2A8E43
split-complementary
#2A438E #8E432A #758E2A
monochromatic
#0E1630 #1C2D5F #2A438E #3859BD #627ED1

Accessibility & contrast

On white

9.16
#2A438E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A438E
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A438E#FFFFFF#000000##FFFFFF
##2A438E1.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144D91
Deuteranopia (green-blind)
#00448C
Tritanopia (blue-blind)
#005562
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a438e;
/* rgb */ color: rgb(42, 67, 142);
/* oklch */ color: oklch(40.7% 0.128 266.8);
Tailwind
colors: {
  custom: {
    50: '#7076b0',
    500: '#2a438e',
    950: '#000000',
  },
}
SCSS
$custom: #2a438e;
$custom-light: #7076b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a438e",
  "rgb": {
    "r": 42,
    "g": 67,
    "b": 142
  },
  "hsl": {
    "h": 225,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40741,
    "c": 0.12802,
    "h": 266.8
  },
  "luminance": 0.0646
}

Semantic roles & 50–950 ramp

primary
#2A438E
secondary
#B6A05D
accent
#B94ADE
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2A438E

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

Preview Lab → · Contrast checker → · Palette generator →

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