#2A3D7F#2A3D7F

#2A3D7F is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.3% C 0.114 H 268.5°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#2A3D7F
RGBrgb(42, 61, 127)
HSLhsl(227, 50%, 33%)
HSVhsv(227, 67%, 50%)
CMYKcmyk(66.9%, 52%, 0%, 50.2%)
CIE-LABlab(27.74, 15.44, -39.71)
CIE-LCHlch(27.74, 42.61, 291.24°)
OKLaboklab(38.27% -0.003 -0.1138)
OKLCHoklch(38.27% 0.114 268.5)
XYZxyz(6.4530, 5.3614, 20.7694)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3D7F #7F6C2A
analogous
#2A677F #2A3D7F #412A7F
triadic
#2A3D7F #7F2A3D #3D7F2A
tetradic
#2A3D7F #7F2A67 #7F6C2A #2A7F41
square
#2A3D7F #7F2A67 #7F6C2A #2A7F41
split-complementary
#2A3D7F #7F412A #677F2A
monochromatic
#0C1123 #1B2751 #2A3D7F #3953AD #5B73C9

Accessibility & contrast

On white

10.13
#2A3D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2A3D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3D7F
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3D7F#FFFFFF#000000##FFFFFF
##2A3D7F1.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184681
Deuteranopia (green-blind)
#013E7E
Tritanopia (blue-blind)
#004C58
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a3d7f;
/* rgb */ color: rgb(42, 61, 127);
/* oklch */ color: oklch(38.3% 0.114 268.5);
Tailwind
colors: {
  custom: {
    50: '#6d72a5',
    500: '#2a3d7f',
    950: '#000000',
  },
}
SCSS
$custom: #2a3d7f;
$custom-light: #6d72a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3d7f",
  "rgb": {
    "r": 42,
    "g": 61,
    "b": 127
  },
  "hsl": {
    "h": 226.588,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38273,
    "c": 0.11388,
    "h": 268.5
  },
  "luminance": 0.05362
}

Semantic roles & 50–950 ramp

primary
#2A3D7F
secondary
#AE9B57
accent
#BB4EDA
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#08070F
muted
#7A7A7F

Preview Lab

Preview with #2A3D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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