#2A3272#2A3272

#2A3272 is a dark, moderate blue. Relative luminance 0.040; OKLCH L 34.9% C 0.110 H 273.9°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#2A3272
RGBrgb(42, 50, 114)
HSLhsl(233, 46%, 31%)
HSVhsv(233, 63%, 45%)
CMYKcmyk(63.2%, 56.1%, 0%, 55.3%)
CIE-LABlab(23.63, 18.15, -38.12)
CIE-LCHlch(23.63, 42.22, 295.47°)
OKLaboklab(34.87% 0.0075 -0.1093)
OKLCHoklch(34.87% 0.11 273.9)
XYZxyz(5.1317, 3.9879, 16.4156)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3272 #726A2A
analogous
#2A5672 #2A3272 #462A72
triadic
#2A3272 #722A32 #32722A
tetradic
#2A3272 #722A56 #726A2A #2A7246
square
#2A3272 #722A56 #726A2A #2A7246
split-complementary
#2A3272 #72462A #56722A
monochromatic
#090B19 #1A1E45 #2A3272 #3A469F #5662C1

Accessibility & contrast

On white

11.68
#2A3272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2A3272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3272
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3272#FFFFFF#000000##FFFFFF
##2A32721.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#093B74
Deuteranopia (green-blind)
#003571
Tritanopia (blue-blind)
#00414D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a3272;
/* rgb */ color: rgb(42, 50, 114);
/* oklch */ color: oklch(34.9% 0.110 273.9);
Tailwind
colors: {
  custom: {
    50: '#6b699b',
    500: '#2a3272',
    950: '#000000',
  },
}
SCSS
$custom: #2a3272;
$custom-light: #6b699b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3272",
  "rgb": {
    "r": 42,
    "g": 50,
    "b": 114
  },
  "hsl": {
    "h": 233.333,
    "s": 46.154,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34868,
    "c": 0.10954,
    "h": 273.9
  },
  "luminance": 0.03988
}

Semantic roles & 50–950 ramp

primary
#2A3272
secondary
#A49B54
accent
#C752D6
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2A3272

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

Preview Lab → · Contrast checker → · Palette generator →

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