#2A3277#2A3277

#2A3277 is a dark, moderate blue. Relative luminance 0.041; OKLCH L 35.3% C 0.117 H 273.8°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#2A3277
RGBrgb(42, 50, 119)
HSLhsl(234, 48%, 32%)
HSVhsv(234, 65%, 47%)
CMYKcmyk(64.7%, 58%, 0%, 53.3%)
CIE-LABlab(24.02, 20.02, -40.68)
CIE-LCHlch(24.02, 45.34, 296.20°)
OKLaboklab(35.28% 0.0077 -0.1168)
OKLCHoklch(35.28% 0.117 273.8)
XYZxyz(5.4241, 4.1049, 17.9557)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3277 #776F2A
analogous
#2A5977 #2A3277 #492A77
triadic
#2A3277 #772A32 #32772A
tetradic
#2A3277 #772A59 #776F2A #2A7749
square
#2A3277 #772A59 #776F2A #2A7749
split-complementary
#2A3277 #77492A #59772A
monochromatic
#0A0C1D #1A1F4A #2A3277 #3A45A4 #5863C4

Accessibility & contrast

On white

11.53
#2A3277 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2A3277 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3277
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3277#FFFFFF#000000##FFFFFF
##2A32771.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D79
Deuteranopia (green-blind)
#003676
Tritanopia (blue-blind)
#00424F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a3277;
/* rgb */ color: rgb(42, 50, 119);
/* oklch */ color: oklch(35.3% 0.117 273.8);
Tailwind
colors: {
  custom: {
    50: '#6c699f',
    500: '#2a3277',
    950: '#000000',
  },
}
SCSS
$custom: #2a3277;
$custom-light: #6c699f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3277",
  "rgb": {
    "r": 42,
    "g": 50,
    "b": 119
  },
  "hsl": {
    "h": 233.766,
    "s": 47.826,
    "l": 31.569
  },
  "oklch": {
    "l": 0.35277,
    "c": 0.1171,
    "h": 273.8
  },
  "luminance": 0.04105
}

Semantic roles & 50–950 ramp

primary
#2A3277
secondary
#A9A054
accent
#C950D7
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2A3277

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

Preview Lab → · Contrast checker → · Palette generator →

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