#2A388A#2A388A

#2A388A is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.1% C 0.137 H 271.1°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#2A388A
RGBrgb(42, 56, 138)
HSLhsl(231, 53%, 35%)
HSVhsv(231, 70%, 54%)
CMYKcmyk(69.6%, 59.4%, 0%, 45.9%)
CIE-LABlab(27.17, 23.05, -47.49)
CIE-LCHlch(27.17, 52.79, 295.89°)
OKLaboklab(38.11% 0.0025 -0.1368)
OKLCHoklch(38.11% 0.137 271.1)
XYZxyz(6.9549, 5.1549, 24.6683)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A388A #8A7C2A
analogous
#2A688A #2A388A #4C2A8A
triadic
#2A388A #8A2A38 #388A2A
tetradic
#2A388A #8A2A68 #8A7C2A #2A8A4C
square
#2A388A #8A2A68 #8A7C2A #2A8A4C
split-complementary
#2A388A #8A4C2A #688A2A
monochromatic
#0D122C #1C255B #2A388A #384BB9 #6070CF

Accessibility & contrast

On white

10.34
#2A388A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2A388A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A388A
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A388A#FFFFFF#000000##FFFFFF
##2A388A1.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#003C88
Tritanopia (blue-blind)
#004C5B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a388a;
/* rgb */ color: rgb(42, 56, 138);
/* oklch */ color: oklch(38.1% 0.137 271.1);
Tailwind
colors: {
  custom: {
    50: '#706ead',
    500: '#2a388a',
    950: '#000000',
  },
}
SCSS
$custom: #2a388a;
$custom-light: #706ead;
$custom-dark: #000000;
JSON
{
  "hex": "#2a388a",
  "rgb": {
    "r": 42,
    "g": 56,
    "b": 138
  },
  "hsl": {
    "h": 231.25,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.3811,
    "c": 0.1368,
    "h": 271.1
  },
  "luminance": 0.05156
}

Semantic roles & 50–950 ramp

primary
#2A388A
secondary
#B4A75B
accent
#C74BDD
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2A388A

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

Preview Lab → · Contrast checker → · Palette generator →

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