#2A337D#2A337D

#2A337D is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.0% C 0.125 H 273.2°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#2A337D
RGBrgb(42, 51, 125)
HSLhsl(233, 50%, 33%)
HSVhsv(233, 66%, 49%)
CMYKcmyk(66.4%, 59.2%, 0%, 51%)
CIE-LABlab(24.77, 21.58, -43.27)
CIE-LCHlch(24.77, 48.35, 296.51°)
OKLaboklab(35.99% 0.0069 -0.1244)
OKLCHoklch(35.99% 0.125 273.2)
XYZxyz(5.8391, 4.3401, 19.9281)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A337D #7D742A
analogous
#2A5C7D #2A337D #4A2A7D
triadic
#2A337D #7D2A33 #337D2A
tetradic
#2A337D #7D2A5C #7D742A #2A7D4A
square
#2A337D #7D2A5C #7D742A #2A7D4A
split-complementary
#2A337D #7D4A2A #5C7D2A
monochromatic
#0B0E21 #1B204F #2A337D #3946AB #5A66C8

Accessibility & contrast

On white

11.24
#2A337D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2A337D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A337D
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A337D#FFFFFF#000000##FFFFFF
##2A337D1.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#00377C
Tritanopia (blue-blind)
#004552
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a337d;
/* rgb */ color: rgb(42, 51, 125);
/* oklch */ color: oklch(36.0% 0.125 273.2);
Tailwind
colors: {
  custom: {
    50: '#6e6aa3',
    500: '#2a337d',
    950: '#000000',
  },
}
SCSS
$custom: #2a337d;
$custom-light: #6e6aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a337d",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 125
  },
  "hsl": {
    "h": 233.494,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35987,
    "c": 0.12462,
    "h": 273.2
  },
  "luminance": 0.04341
}

Semantic roles & 50–950 ramp

primary
#2A337D
secondary
#ADA456
accent
#CA4FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2A337D

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

Preview Lab → · Contrast checker → · Palette generator →

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