#2A388F#2A388F

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

Color values

HEX#2A388F
RGBrgb(42, 56, 143)
HSLhsl(232, 55%, 36%)
HSVhsv(232, 71%, 56%)
CMYKcmyk(70.6%, 60.8%, 0%, 43.9%)
CIE-LABlab(27.58, 24.93, -49.92)
CIE-LCHlch(27.58, 55.80, 296.54°)
OKLaboklab(38.54% 0.0026 -0.1439)
OKLCHoklch(38.54% 0.144 271)
XYZxyz(7.3253, 5.3031, 26.6188)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A388F #8F812A
analogous
#2A6B8F #2A388F #4F2A8F
triadic
#2A388F #8F2A38 #388F2A
tetradic
#2A388F #8F2A6B #8F812A #2A8F4F
square
#2A388F #8F2A6B #8F812A #2A8F4F
split-complementary
#2A388F #8F4F2A #6B8F2A
monochromatic
#0E1330 #1C2560 #2A388F #384BBE #6272D1

Accessibility & contrast

On white

10.19
#2A388F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2A388F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A388F
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A388F#FFFFFF#000000##FFFFFF
##2A388F1.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004692
Deuteranopia (green-blind)
#003D8D
Tritanopia (blue-blind)
#004E5E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a388f;
/* rgb */ color: rgb(42, 56, 143);
/* oklch */ color: oklch(38.5% 0.144 271.0);
Tailwind
colors: {
  custom: {
    50: '#716eb1',
    500: '#2a388f',
    950: '#000000',
  },
}
SCSS
$custom: #2a388f;
$custom-light: #716eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a388f",
  "rgb": {
    "r": 42,
    "g": 56,
    "b": 143
  },
  "hsl": {
    "h": 231.683,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.38543,
    "c": 0.14393,
    "h": 271
  },
  "luminance": 0.05304
}

Semantic roles & 50–950 ramp

primary
#2A388F
secondary
#B7AB5E
accent
#C94ADE
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2A388F

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

Preview Lab → · Contrast checker → · Palette generator →

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