#2A387D#2A387D

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

Color values

HEX#2A387D
RGBrgb(42, 56, 125)
HSLhsl(230, 50%, 33%)
HSVhsv(230, 66%, 49%)
CMYKcmyk(66.4%, 55.2%, 0%, 51%)
CIE-LABlab(26.16, 18.13, -41.01)
CIE-LCHlch(26.16, 44.84, 293.85°)
OKLaboklab(37.03% 0.0019 -0.1177)
OKLCHoklch(37.03% 0.118 270.9)
XYZxyz(6.0694, 4.8007, 20.0048)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A387D #7D6F2A
analogous
#2A617D #2A387D #462A7D
triadic
#2A387D #7D2A38 #387D2A
tetradic
#2A387D #7D2A61 #7D6F2A #2A7D46
square
#2A387D #7D2A61 #7D6F2A #2A7D46
split-complementary
#2A387D #7D462A #617D2A
monochromatic
#0B0F21 #1B234F #2A387D #394DAB #5A6CC8

Accessibility & contrast

On white

10.71
#2A387D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2A387D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A387D
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A387D#FFFFFF#000000##FFFFFF
##2A387D1.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A427F
Deuteranopia (green-blind)
#003A7C
Tritanopia (blue-blind)
#004855
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a387d;
/* rgb */ color: rgb(42, 56, 125);
/* oklch */ color: oklch(37.0% 0.118 270.9);
Tailwind
colors: {
  custom: {
    50: '#6d6ea3',
    500: '#2a387d',
    950: '#000000',
  },
}
SCSS
$custom: #2a387d;
$custom-light: #6d6ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a387d",
  "rgb": {
    "r": 42,
    "g": 56,
    "b": 125
  },
  "hsl": {
    "h": 229.88,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37031,
    "c": 0.11774,
    "h": 270.9
  },
  "luminance": 0.04801
}

Semantic roles & 50–950 ramp

primary
#2A387D
secondary
#AD9E56
accent
#C24FD9
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08070F
muted
#7A7A7F

Preview Lab

Preview with #2A387D

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

Preview Lab → · Contrast checker → · Palette generator →

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