#2A387C#2A387C

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

Color values

HEX#2A387C
RGBrgb(42, 56, 124)
HSLhsl(230, 49%, 33%)
HSVhsv(230, 66%, 49%)
CMYKcmyk(66.1%, 54.8%, 0%, 51.4%)
CIE-LABlab(26.08, 17.75, -40.50)
CIE-LCHlch(26.08, 44.22, 293.67°)
OKLaboklab(36.95% 0.0019 -0.1162)
OKLCHoklch(36.95% 0.116 270.9)
XYZxyz(6.0059, 4.7753, 19.6701)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A387C #7C6E2A
analogous
#2A617C #2A387C #452A7C
triadic
#2A387C #7C2A38 #387C2A
tetradic
#2A387C #7C2A61 #7C6E2A #2A7C45
square
#2A387C #7C2A61 #7C6E2A #2A7C45
split-complementary
#2A387C #7C452A #617C2A
monochromatic
#0B0F21 #1B234E #2A387C #394DAA #596CC7

Accessibility & contrast

On white

10.74
#2A387C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A387C
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A387C#FFFFFF#000000##FFFFFF
##2A387C1.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a387c;
/* rgb */ color: rgb(42, 56, 124);
/* oklch */ color: oklch(37.0% 0.116 270.9);
Tailwind
colors: {
  custom: {
    50: '#6d6ea2',
    500: '#2a387c',
    950: '#000000',
  },
}
SCSS
$custom: #2a387c;
$custom-light: #6d6ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a387c",
  "rgb": {
    "r": 42,
    "g": 56,
    "b": 124
  },
  "hsl": {
    "h": 229.756,
    "s": 49.398,
    "l": 32.549
  },
  "oklch": {
    "l": 0.36951,
    "c": 0.11623,
    "h": 270.9
  },
  "luminance": 0.04776
}

Semantic roles & 50–950 ramp

primary
#2A387C
secondary
#AD9E55
accent
#C14FD9
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08070F
muted
#7A7A7F

Preview Lab

Preview with #2A387C

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

Preview Lab → · Contrast checker → · Palette generator →

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