#2A337B#2A337B

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

Color values

HEX#2A337B
RGBrgb(42, 51, 123)
HSLhsl(233, 49%, 32%)
HSVhsv(233, 66%, 48%)
CMYKcmyk(65.9%, 58.5%, 0%, 51.8%)
CIE-LABlab(24.61, 20.83, -42.26)
CIE-LCHlch(24.61, 47.12, 296.24°)
OKLaboklab(35.82% 0.0069 -0.1215)
OKLCHoklch(35.82% 0.122 273.2)
XYZxyz(5.7126, 4.2895, 19.2620)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A337B #7B722A
analogous
#2A5C7B #2A337B #492A7B
triadic
#2A337B #7B2A33 #337B2A
tetradic
#2A337B #7B2A5C #7B722A #2A7B49
square
#2A337B #7B2A5C #7B722A #2A7B49
split-complementary
#2A337B #7B492A #5C7B2A
monochromatic
#0B0D20 #1A204D #2A337B #3A46A9 #5965C6

Accessibility & contrast

On white

11.30
#2A337B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2A337B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A337B
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A337B#FFFFFF#000000##FFFFFF
##2A337B1.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7D
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#004451
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a337b;
/* rgb */ color: rgb(42, 51, 123);
/* oklch */ color: oklch(35.8% 0.122 273.2);
Tailwind
colors: {
  custom: {
    50: '#6d6aa2',
    500: '#2a337b',
    950: '#000000',
  },
}
SCSS
$custom: #2a337b;
$custom-light: #6d6aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a337b",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 123
  },
  "hsl": {
    "h": 233.333,
    "s": 49.091,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35818,
    "c": 0.12166,
    "h": 273.2
  },
  "luminance": 0.0429
}

Semantic roles & 50–950 ramp

primary
#2A337B
secondary
#ACA255
accent
#C94FD9
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #2A337B

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

Preview Lab → · Contrast checker → · Palette generator →

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