#2A3A7D#2A3A7D

#2A3A7D is a dark, moderate blue. Relative luminance 0.050; OKLCH L 37.5% C 0.115 H 269.9°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#2A3A7D
RGBrgb(42, 58, 125)
HSLhsl(228, 50%, 33%)
HSVhsv(228, 66%, 49%)
CMYKcmyk(66.4%, 53.6%, 0%, 51%)
CIE-LABlab(26.73, 16.75, -40.09)
CIE-LCHlch(26.73, 43.45, 292.67°)
OKLaboklab(37.46% -0.0001 -0.115)
OKLCHoklch(37.46% 0.115 269.9)
XYZxyz(6.1683, 4.9985, 20.0378)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3A7D #7D6D2A
analogous
#2A637D #2A3A7D #442A7D
triadic
#2A3A7D #7D2A3A #3A7D2A
tetradic
#2A3A7D #7D2A63 #7D6D2A #2A7D44
square
#2A3A7D #7D2A63 #7D6D2A #2A7D44
split-complementary
#2A3A7D #7D442A #637D2A
monochromatic
#0B0F21 #1B254F #2A3A7D #394FAB #5A6FC8

Accessibility & contrast

On white

10.50
#2A3A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2A3A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3A7D
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3A7D#FFFFFF#000000##FFFFFF
##2A3A7D1.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12437F
Deuteranopia (green-blind)
#003C7C
Tritanopia (blue-blind)
#004A55
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a3a7d;
/* rgb */ color: rgb(42, 58, 125);
/* oklch */ color: oklch(37.5% 0.115 269.9);
Tailwind
colors: {
  custom: {
    50: '#6d6fa3',
    500: '#2a3a7d',
    950: '#000000',
  },
}
SCSS
$custom: #2a3a7d;
$custom-light: #6d6fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3a7d",
  "rgb": {
    "r": 42,
    "g": 58,
    "b": 125
  },
  "hsl": {
    "h": 228.434,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37462,
    "c": 0.11498,
    "h": 269.9
  },
  "luminance": 0.04999
}

Semantic roles & 50–950 ramp

primary
#2A3A7D
secondary
#AD9C56
accent
#BE4FD9
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#08070F
muted
#7A7A7F

Preview Lab

Preview with #2A3A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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