#2A388E#2A388E

#2A388E is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.5% C 0.143 H 271.0°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#2A388E
RGBrgb(42, 56, 142)
HSLhsl(232, 54%, 36%)
HSVhsv(232, 70%, 56%)
CMYKcmyk(70.4%, 60.6%, 0%, 44.3%)
CIE-LABlab(27.50, 24.55, -49.43)
CIE-LCHlch(27.50, 55.20, 296.41°)
OKLaboklab(38.46% 0.0026 -0.1425)
OKLCHoklch(38.46% 0.143 271)
XYZxyz(7.2498, 5.2729, 26.2216)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A388E #8E802A
analogous
#2A6A8E #2A388E #4E2A8E
triadic
#2A388E #8E2A38 #388E2A
tetradic
#2A388E #8E2A6A #8E802A #2A8E4E
square
#2A388E #8E2A6A #8E802A #2A8E4E
split-complementary
#2A388E #8E4E2A #6A8E2A
monochromatic
#0E1330 #1C255F #2A388E #384BBD #6271D1

Accessibility & contrast

On white

10.22
#2A388E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2A388E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A388E
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A388E#FFFFFF#000000##FFFFFF
##2A388E1.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#003C8C
Tritanopia (blue-blind)
#004D5D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a388e;
/* rgb */ color: rgb(42, 56, 142);
/* oklch */ color: oklch(38.5% 0.143 271.0);
Tailwind
colors: {
  custom: {
    50: '#716eb0',
    500: '#2a388e',
    950: '#000000',
  },
}
SCSS
$custom: #2a388e;
$custom-light: #716eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a388e",
  "rgb": {
    "r": 42,
    "g": 56,
    "b": 142
  },
  "hsl": {
    "h": 231.6,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.38455,
    "c": 0.14251,
    "h": 271
  },
  "luminance": 0.05274
}

Semantic roles & 50–950 ramp

primary
#2A388E
secondary
#B6AA5D
accent
#C94ADE
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2A388E

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

Preview Lab → · Contrast checker → · Palette generator →

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