#2A337A#2A337A

#2A337A is a dark, vivid blue. Relative luminance 0.043; OKLCH L 35.7% C 0.120 H 273.3°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#2A337A
RGBrgb(42, 51, 122)
HSLhsl(233, 49%, 32%)
HSVhsv(233, 66%, 48%)
CMYKcmyk(65.6%, 58.2%, 0%, 52.2%)
CIE-LABlab(24.53, 20.45, -41.76)
CIE-LCHlch(24.53, 46.50, 296.10°)
OKLaboklab(35.73% 0.0068 -0.12)
OKLCHoklch(35.73% 0.12 273.3)
XYZxyz(5.6504, 4.2646, 18.9340)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A337A #7A712A
analogous
#2A5B7A #2A337A #492A7A
triadic
#2A337A #7A2A33 #337A2A
tetradic
#2A337A #7A2A5B #7A712A #2A7A49
square
#2A337A #7A2A5B #7A712A #2A7A49
split-complementary
#2A337A #7A492A #5B7A2A
monochromatic
#0B0D1F #1A204C #2A337A #3A46A8 #5965C6

Accessibility & contrast

On white

11.33
#2A337A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2A337A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A337A
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A337A#FFFFFF#000000##FFFFFF
##2A337A1.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7C
Deuteranopia (green-blind)
#003779
Tritanopia (blue-blind)
#004451
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a337a;
/* rgb */ color: rgb(42, 51, 122);
/* oklch */ color: oklch(35.7% 0.120 273.3);
Tailwind
colors: {
  custom: {
    50: '#6d6aa1',
    500: '#2a337a',
    950: '#000000',
  },
}
SCSS
$custom: #2a337a;
$custom-light: #6d6aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a337a",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 122
  },
  "hsl": {
    "h": 233.25,
    "s": 48.78,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35734,
    "c": 0.12017,
    "h": 273.3
  },
  "luminance": 0.04265
}

Semantic roles & 50–950 ramp

primary
#2A337A
secondary
#ABA255
accent
#C94FD8
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #2A337A

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

Preview Lab → · Contrast checker → · Palette generator →

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