#2A237A#2A237A

#2A237A is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.7% C 0.141 H 278.8°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#2A237A
RGBrgb(42, 35, 122)
HSLhsl(245, 55%, 31%)
HSVhsv(245, 71%, 48%)
CMYKcmyk(65.6%, 71.3%, 0%, 52.2%)
CIE-LABlab(20.44, 31.14, -48.43)
CIE-LCHlch(20.44, 57.57, 302.74°)
OKLaboklab(32.73% 0.0215 -0.1397)
OKLCHoklch(32.73% 0.141 278.8)
XYZxyz(5.0676, 3.0990, 18.7397)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A237A #737A23
analogous
#23477A #2A237A #55237A
triadic
#2A237A #7A2A23 #237A2A
tetradic
#2A237A #7A2347 #737A23 #237A55
square
#2A237A #7A2347 #737A23 #237A55
split-complementary
#2A237A #7A5523 #477A23
monochromatic
#09081B #1A154A #2A237A #3A31AA #564CCC

Accessibility & contrast

On white

12.96
#2A237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2A237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A237A
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A237A#FFFFFF#000000##FFFFFF
##2A237A1.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357D
Deuteranopia (green-blind)
#002E78
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a237a;
/* rgb */ color: rgb(42, 35, 122);
/* oklch */ color: oklch(32.7% 0.141 278.8);
Tailwind
colors: {
  custom: {
    50: '#6e5fa1',
    500: '#2a237a',
    950: '#000000',
  },
}
SCSS
$custom: #2a237a;
$custom-light: #6e5fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a237a",
  "rgb": {
    "r": 42,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 244.828,
    "s": 55.414,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32732,
    "c": 0.14132,
    "h": 278.8
  },
  "luminance": 0.03099
}

Semantic roles & 50–950 ramp

primary
#2A237A
secondary
#A5AD4C
accent
#DF49D3
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2A237A

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

Preview Lab → · Contrast checker → · Palette generator →

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