#2A3A72#2A3A72

#2A3A72 is a dark, moderate blue. Relative luminance 0.047; OKLCH L 36.6% C 0.098 H 269.1°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#2A3A72
RGBrgb(42, 58, 114)
HSLhsl(227, 46%, 31%)
HSVhsv(227, 63%, 45%)
CMYKcmyk(63.2%, 49.1%, 0%, 55.3%)
CIE-LABlab(25.96, 12.58, -34.37)
CIE-LCHlch(25.96, 36.60, 290.11°)
OKLaboklab(36.63% -0.0015 -0.0982)
OKLCHoklch(36.63% 0.098 269.1)
XYZxyz(5.5041, 4.7328, 16.5398)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3A72 #72622A
analogous
#2A5E72 #2A3A72 #3E2A72
triadic
#2A3A72 #722A3A #3A722A
tetradic
#2A3A72 #722A5E #72622A #2A723E
square
#2A3A72 #722A5E #72622A #2A723E
split-complementary
#2A3A72 #723E2A #5E722A
monochromatic
#090C19 #1A2345 #2A3A72 #3A519F #566EC1

Accessibility & contrast

On white

10.79
#2A3A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2A3A72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3A72
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3A72#FFFFFF#000000##FFFFFF
##2A3A721.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4174
Deuteranopia (green-blind)
#133A71
Tritanopia (blue-blind)
#004750
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a3a72;
/* rgb */ color: rgb(42, 58, 114);
/* oklch */ color: oklch(36.6% 0.098 269.1);
Tailwind
colors: {
  custom: {
    50: '#6b6f9b',
    500: '#2a3a72',
    950: '#000000',
  },
}
SCSS
$custom: #2a3a72;
$custom-light: #6b6f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3a72",
  "rgb": {
    "r": 42,
    "g": 58,
    "b": 114
  },
  "hsl": {
    "h": 226.667,
    "s": 46.154,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3663,
    "c": 0.09817,
    "h": 269.1
  },
  "luminance": 0.04733
}

Semantic roles & 50–950 ramp

primary
#2A3A72
secondary
#A49254
accent
#B952D6
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #2A3A72

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

Preview Lab → · Contrast checker → · Palette generator →

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