#2A337F#2A337F

#2A337F is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.2% C 0.128 H 273.1°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#2A337F
RGBrgb(42, 51, 127)
HSLhsl(234, 50%, 33%)
HSVhsv(234, 67%, 50%)
CMYKcmyk(66.9%, 59.8%, 0%, 50.2%)
CIE-LABlab(24.93, 22.33, -44.27)
CIE-LCHlch(24.93, 49.58, 296.77°)
OKLaboklab(36.16% 0.0069 -0.1274)
OKLCHoklch(36.16% 0.128 273.1)
XYZxyz(5.9682, 4.3917, 20.6077)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A337F #7F762A
analogous
#2A5D7F #2A337F #4B2A7F
triadic
#2A337F #7F2A33 #337F2A
tetradic
#2A337F #7F2A5D #7F762A #2A7F4B
square
#2A337F #7F2A5D #7F762A #2A7F4B
split-complementary
#2A337F #7F4B2A #5D7F2A
monochromatic
#0C0E23 #1B2151 #2A337F #3945AD #5B66C9

Accessibility & contrast

On white

11.18
#2A337F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2A337F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A337F
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A337F#FFFFFF#000000##FFFFFF
##2A337F1.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F82
Deuteranopia (green-blind)
#00377D
Tritanopia (blue-blind)
#004553
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a337f;
/* rgb */ color: rgb(42, 51, 127);
/* oklch */ color: oklch(36.2% 0.128 273.1);
Tailwind
colors: {
  custom: {
    50: '#6e6aa5',
    500: '#2a337f',
    950: '#000000',
  },
}
SCSS
$custom: #2a337f;
$custom-light: #6e6aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a337f",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 127
  },
  "hsl": {
    "h": 233.647,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.36158,
    "c": 0.12756,
    "h": 273.1
  },
  "luminance": 0.04392
}

Semantic roles & 50–950 ramp

primary
#2A337F
secondary
#AEA557
accent
#CB4EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2A337F

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

Preview Lab → · Contrast checker → · Palette generator →

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