#2A337E#2A337E

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

Color values

HEX#2A337E
RGBrgb(42, 51, 126)
HSLhsl(234, 50%, 33%)
HSVhsv(234, 67%, 49%)
CMYKcmyk(66.7%, 59.5%, 0%, 50.6%)
CIE-LABlab(24.85, 21.95, -43.77)
CIE-LCHlch(24.85, 48.97, 296.64°)
OKLaboklab(36.07% 0.0069 -0.1259)
OKLCHoklch(36.07% 0.126 273.1)
XYZxyz(5.9033, 4.3657, 20.2662)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A337E #7E752A
analogous
#2A5D7E #2A337E #4B2A7E
triadic
#2A337E #7E2A33 #337E2A
tetradic
#2A337E #7E2A5D #7E752A #2A7E4B
square
#2A337E #7E2A5D #7E752A #2A7E4B
split-complementary
#2A337E #7E4B2A #5D7E2A
monochromatic
#0B0E22 #1B2050 #2A337E #3946AC #5A66C8

Accessibility & contrast

On white

11.21
#2A337E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A337E
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A337E#FFFFFF#000000##FFFFFF
##2A337E1.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a337e;
/* rgb */ color: rgb(42, 51, 126);
/* oklch */ color: oklch(36.1% 0.126 273.1);
Tailwind
colors: {
  custom: {
    50: '#6e6aa4',
    500: '#2a337e',
    950: '#000000',
  },
}
SCSS
$custom: #2a337e;
$custom-light: #6e6aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a337e",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 126
  },
  "hsl": {
    "h": 233.571,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.36072,
    "c": 0.12609,
    "h": 273.1
  },
  "luminance": 0.04366
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A337E

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

Preview Lab → · Contrast checker → · Palette generator →

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