#2A337C#2A337C

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

Color values

HEX#2A337C
RGBrgb(42, 51, 124)
HSLhsl(233, 49%, 33%)
HSVhsv(233, 66%, 49%)
CMYKcmyk(66.1%, 58.9%, 0%, 51.4%)
CIE-LABlab(24.69, 21.20, -42.77)
CIE-LCHlch(24.69, 47.73, 296.37°)
OKLaboklab(35.9% 0.0069 -0.1229)
OKLCHoklch(35.9% 0.123 273.2)
XYZxyz(5.7756, 4.3146, 19.5933)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A337C #7C732A
analogous
#2A5C7C #2A337C #4A2A7C
triadic
#2A337C #7C2A33 #337C2A
tetradic
#2A337C #7C2A5C #7C732A #2A7C4A
square
#2A337C #7C2A5C #7C732A #2A7C4A
split-complementary
#2A337C #7C4A2A #5C7C2A
monochromatic
#0B0D21 #1B204E #2A337C #3946AA #5965C7

Accessibility & contrast

On white

11.27
#2A337C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A337C
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A337C#FFFFFF#000000##FFFFFF
##2A337C1.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a337c;
/* rgb */ color: rgb(42, 51, 124);
/* oklch */ color: oklch(35.9% 0.123 273.2);
Tailwind
colors: {
  custom: {
    50: '#6d6aa2',
    500: '#2a337c',
    950: '#000000',
  },
}
SCSS
$custom: #2a337c;
$custom-light: #6d6aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a337c",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 124
  },
  "hsl": {
    "h": 233.415,
    "s": 49.398,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35902,
    "c": 0.12314,
    "h": 273.2
  },
  "luminance": 0.04315
}

Semantic roles & 50–950 ramp

primary
#2A337C
secondary
#ADA355
accent
#CA4FD9
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #2A337C

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

Preview Lab → · Contrast checker → · Palette generator →

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