#2A396C#2A396C

#2A396C is a dark, moderate blue. Relative luminance 0.045; OKLCH L 36.0% C 0.090 H 269.2°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#2A396C
RGBrgb(42, 57, 108)
HSLhsl(226, 44%, 29%)
HSVhsv(226, 61%, 42%)
CMYKcmyk(61.1%, 47.2%, 0%, 57.6%)
CIE-LABlab(25.26, 11.03, -31.65)
CIE-LCHlch(25.26, 33.52, 289.21°)
OKLaboklab(35.97% -0.0013 -0.0902)
OKLCHoklch(35.97% 0.09 269.2)
XYZxyz(5.1238, 4.5008, 14.7832)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A396C #6C5D2A
analogous
#2A5A6C #2A396C #3C2A6C
triadic
#2A396C #6C2A39 #396C2A
tetradic
#2A396C #6C2A5A #6C5D2A #2A6C3C
square
#2A396C #6C2A5A #6C5D2A #2A6C3C
split-complementary
#2A396C #6C3C2A #5A6C2A
monochromatic
#090C16 #192240 #2A396C #3B5098 #546CBC

Accessibility & contrast

On white

11.05
#2A396C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2A396C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A396C
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A396C#FFFFFF#000000##FFFFFF
##2A396C1.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#223F6E
Deuteranopia (green-blind)
#19396B
Tritanopia (blue-blind)
#00444D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a396c;
/* rgb */ color: rgb(42, 57, 108);
/* oklch */ color: oklch(36.0% 0.090 269.2);
Tailwind
colors: {
  custom: {
    50: '#6a6f96',
    500: '#2a396c',
    950: '#000000',
  },
}
SCSS
$custom: #2a396c;
$custom-light: #6a6f96;
$custom-dark: #000000;
JSON
{
  "hex": "#2a396c",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 108
  },
  "hsl": {
    "h": 226.364,
    "s": 44,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35969,
    "c": 0.0902,
    "h": 269.2
  },
  "luminance": 0.04501
}

Semantic roles & 50–950 ramp

primary
#2A396C
secondary
#9E8D54
accent
#B754D4
background
#F6F6F9
surface
#EBECF2
border
#C6C7CC
text
#07070D
muted
#7A7A7E

Preview Lab

Preview with #2A396C

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

Preview Lab → · Contrast checker → · Palette generator →

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