#2A3A76#2A3A76

#2A3A76 is a dark, moderate blue. Relative luminance 0.048; OKLCH L 36.9% C 0.104 H 269.5°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#2A3A76
RGBrgb(42, 58, 118)
HSLhsl(227, 48%, 31%)
HSVhsv(227, 64%, 46%)
CMYKcmyk(64.4%, 50.8%, 0%, 53.7%)
CIE-LABlab(26.23, 14.09, -36.47)
CIE-LCHlch(26.23, 39.10, 291.13°)
OKLaboklab(36.93% -0.0009 -0.1043)
OKLCHoklch(36.93% 0.104 269.5)
XYZxyz(5.7368, 4.8259, 17.7652)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3A76 #76662A
analogous
#2A6076 #2A3A76 #402A76
triadic
#2A3A76 #762A3A #3A762A
tetradic
#2A3A76 #762A60 #76662A #2A7640
square
#2A3A76 #762A60 #76662A #2A7640
split-complementary
#2A3A76 #76402A #60762A
monochromatic
#0A0E1C #1A2449 #2A3A76 #3A50A3 #576EC3

Accessibility & contrast

On white

10.69
#2A3A76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A3A76
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3A76#FFFFFF#000000##FFFFFF
##2A3A761.0010.691.9710.69
#FFFFFF10.691.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4278
Deuteranopia (green-blind)
#0C3B75
Tritanopia (blue-blind)
#004852
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a3a76;
/* rgb */ color: rgb(42, 58, 118);
/* oklch */ color: oklch(36.9% 0.104 269.5);
Tailwind
colors: {
  custom: {
    50: '#6c6f9e',
    500: '#2a3a76',
    950: '#000000',
  },
}
SCSS
$custom: #2a3a76;
$custom-light: #6c6f9e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3a76",
  "rgb": {
    "r": 42,
    "g": 58,
    "b": 118
  },
  "hsl": {
    "h": 227.368,
    "s": 47.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36926,
    "c": 0.10434,
    "h": 269.5
  },
  "luminance": 0.04826
}

Semantic roles & 50–950 ramp

primary
#2A3A76
secondary
#A89654
accent
#BB51D7
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #2A3A76

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

Preview Lab → · Contrast checker → · Palette generator →

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