#2A237E#2A237E

#2A237E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.147 H 278.2°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#2A237E
RGBrgb(42, 35, 126)
HSLhsl(245, 57%, 32%)
HSVhsv(245, 72%, 49%)
CMYKcmyk(66.7%, 72.2%, 0%, 50.6%)
CIE-LABlab(20.83, 32.53, -50.33)
CIE-LCHlch(20.83, 59.92, 302.87°)
OKLaboklab(33.13% 0.0209 -0.1452)
OKLCHoklch(33.13% 0.147 278.2)
XYZxyz(5.3206, 3.2002, 20.0719)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A237E #777E23
analogous
#234A7E #2A237E #58237E
triadic
#2A237E #7E2A23 #237E2A
tetradic
#2A237E #7E234A #777E23 #237E58
square
#2A237E #7E234A #777E23 #237E58
split-complementary
#2A237E #7E5823 #4A7E23
monochromatic
#0A081E #1A164E #2A237E #3A30AE #584ECE

Accessibility & contrast

On white

12.80
#2A237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2A237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A237E
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A237E#FFFFFF#000000##FFFFFF
##2A237E1.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2a237e;
/* rgb */ color: rgb(42, 35, 126);
/* oklch */ color: oklch(33.1% 0.147 278.2);
Tailwind
colors: {
  custom: {
    50: '#6f5fa4',
    500: '#2a237e',
    950: '#000000',
  },
}
SCSS
$custom: #2a237e;
$custom-light: #6f5fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a237e",
  "rgb": {
    "r": 42,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 244.615,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33133,
    "c": 0.14672,
    "h": 278.2
  },
  "luminance": 0.03201
}

Semantic roles & 50–950 ramp

primary
#2A237E
secondary
#A9B04C
accent
#E048D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2A237E

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

Preview Lab → · Contrast checker → · Palette generator →

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