#2A387B#2A387B

#2A387B is a dark, moderate blue. Relative luminance 0.048; OKLCH L 36.9% C 0.115 H 270.9°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#2A387B
RGBrgb(42, 56, 123)
HSLhsl(230, 49%, 32%)
HSVhsv(230, 66%, 48%)
CMYKcmyk(65.9%, 54.5%, 0%, 51.8%)
CIE-LABlab(26.01, 17.37, -39.99)
CIE-LCHlch(26.01, 43.60, 293.48°)
OKLaboklab(36.87% 0.0018 -0.1147)
OKLCHoklch(36.87% 0.115 270.9)
XYZxyz(5.9430, 4.7501, 19.3387)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A387B #7B6D2A
analogous
#2A607B #2A387B #452A7B
triadic
#2A387B #7B2A38 #387B2A
tetradic
#2A387B #7B2A60 #7B6D2A #2A7B45
square
#2A387B #7B2A60 #7B6D2A #2A7B45
split-complementary
#2A387B #7B452A #607B2A
monochromatic
#0B0E20 #1A234D #2A387B #3A4DA9 #596CC6

Accessibility & contrast

On white

10.77
#2A387B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2A387B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A387B
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A387B#FFFFFF#000000##FFFFFF
##2A387B1.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E417D
Deuteranopia (green-blind)
#003A7A
Tritanopia (blue-blind)
#004854
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a387b;
/* rgb */ color: rgb(42, 56, 123);
/* oklch */ color: oklch(36.9% 0.115 270.9);
Tailwind
colors: {
  custom: {
    50: '#6d6ea2',
    500: '#2a387b',
    950: '#000000',
  },
}
SCSS
$custom: #2a387b;
$custom-light: #6d6ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a387b",
  "rgb": {
    "r": 42,
    "g": 56,
    "b": 123
  },
  "hsl": {
    "h": 229.63,
    "s": 49.091,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36872,
    "c": 0.11473,
    "h": 270.9
  },
  "luminance": 0.04751
}

Semantic roles & 50–950 ramp

primary
#2A387B
secondary
#AC9D55
accent
#C14FD9
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#08070F
muted
#7A7A7F

Preview Lab

Preview with #2A387B

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

Preview Lab → · Contrast checker → · Palette generator →

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