#2A396F#2A396F

#2A396F is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.2% C 0.095 H 269.5°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#2A396F
RGBrgb(42, 57, 111)
HSLhsl(227, 45%, 30%)
HSVhsv(227, 62%, 44%)
CMYKcmyk(62.2%, 48.6%, 0%, 56.5%)
CIE-LABlab(25.46, 12.15, -33.26)
CIE-LCHlch(25.46, 35.41, 290.07°)
OKLaboklab(36.18% -0.0008 -0.0949)
OKLCHoklch(36.18% 0.095 269.5)
XYZxyz(5.2863, 4.5658, 15.6386)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A396F #6F602A
analogous
#2A5B6F #2A396F #3E2A6F
triadic
#2A396F #6F2A39 #396F2A
tetradic
#2A396F #6F2A5B #6F602A #2A6F3E
square
#2A396F #6F2A5B #6F602A #2A6F3E
split-complementary
#2A396F #6F3E2A #5B6F2A
monochromatic
#080B16 #192243 #2A396F #3B509B #556CBF

Accessibility & contrast

On white

10.98
#2A396F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2A396F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A396F
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A396F#FFFFFF#000000##FFFFFF
##2A396F1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4071
Deuteranopia (green-blind)
#15396E
Tritanopia (blue-blind)
#00454E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a396f;
/* rgb */ color: rgb(42, 57, 111);
/* oklch */ color: oklch(36.2% 0.095 269.5);
Tailwind
colors: {
  custom: {
    50: '#6a6f99',
    500: '#2a396f',
    950: '#000000',
  },
}
SCSS
$custom: #2a396f;
$custom-light: #6a6f99;
$custom-dark: #000000;
JSON
{
  "hex": "#2a396f",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 111
  },
  "hsl": {
    "h": 226.957,
    "s": 45.098,
    "l": 30
  },
  "oklch": {
    "l": 0.36184,
    "c": 0.0949,
    "h": 269.5
  },
  "luminance": 0.04566
}

Semantic roles & 50–950 ramp

primary
#2A396F
secondary
#A19054
accent
#B953D5
background
#F6F6F9
surface
#EBECF2
border
#C6C7CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #2A396F

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

Preview Lab → · Contrast checker → · Palette generator →

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