#2A387F#2A387F

#2A387F is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.2% C 0.121 H 271.0°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#2A387F
RGBrgb(42, 56, 127)
HSLhsl(230, 50%, 33%)
HSVhsv(230, 67%, 50%)
CMYKcmyk(66.9%, 55.9%, 0%, 50.2%)
CIE-LABlab(26.31, 18.89, -42.02)
CIE-LCHlch(26.31, 46.07, 294.20°)
OKLaboklab(37.19% 0.0021 -0.1207)
OKLCHoklch(37.19% 0.121 271)
XYZxyz(6.1985, 4.8523, 20.6845)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A387F #7F712A
analogous
#2A627F #2A387F #462A7F
triadic
#2A387F #7F2A38 #387F2A
tetradic
#2A387F #7F2A62 #7F712A #2A7F46
square
#2A387F #7F2A62 #7F712A #2A7F46
split-complementary
#2A387F #7F462A #627F2A
monochromatic
#0C0F23 #1B2451 #2A387F #394CAD #5B6DC9

Accessibility & contrast

On white

10.66
#2A387F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2A387F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A387F
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A387F#FFFFFF#000000##FFFFFF
##2A387F1.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064281
Deuteranopia (green-blind)
#003B7E
Tritanopia (blue-blind)
#004956
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a387f;
/* rgb */ color: rgb(42, 56, 127);
/* oklch */ color: oklch(37.2% 0.121 271.0);
Tailwind
colors: {
  custom: {
    50: '#6e6ea5',
    500: '#2a387f',
    950: '#000000',
  },
}
SCSS
$custom: #2a387f;
$custom-light: #6e6ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a387f",
  "rgb": {
    "r": 42,
    "g": 56,
    "b": 127
  },
  "hsl": {
    "h": 230.118,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37192,
    "c": 0.12072,
    "h": 271
  },
  "luminance": 0.04853
}

Semantic roles & 50–950 ramp

primary
#2A387F
secondary
#AEA057
accent
#C34EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2A387F

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

Preview Lab → · Contrast checker → · Palette generator →

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