#2A396E#2A396E

#2A396E is a dark, moderate blue. Relative luminance 0.045; OKLCH L 36.1% C 0.093 H 269.4°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#2A396E
RGBrgb(42, 57, 110)
HSLhsl(227, 45%, 30%)
HSVhsv(227, 62%, 43%)
CMYKcmyk(61.8%, 48.2%, 0%, 56.9%)
CIE-LABlab(25.39, 11.77, -32.72)
CIE-LCHlch(25.39, 34.78, 289.79°)
OKLaboklab(36.11% -0.001 -0.0933)
OKLCHoklch(36.11% 0.093 269.4)
XYZxyz(5.2315, 4.5439, 15.3502)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A396E #6E5F2A
analogous
#2A5B6E #2A396E #3D2A6E
triadic
#2A396E #6E2A39 #396E2A
tetradic
#2A396E #6E2A5B #6E5F2A #2A6E3D
square
#2A396E #6E2A5B #6E5F2A #2A6E3D
split-complementary
#2A396E #6E3D2A #5B6E2A
monochromatic
#080B16 #192242 #2A396E #3B509A #556CBE

Accessibility & contrast

On white

11.00
#2A396E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A396E
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A396E#FFFFFF#000000##FFFFFF
##2A396E1.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#203F70
Deuteranopia (green-blind)
#16396D
Tritanopia (blue-blind)
#00454E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a396e;
/* rgb */ color: rgb(42, 57, 110);
/* oklch */ color: oklch(36.1% 0.093 269.4);
Tailwind
colors: {
  custom: {
    50: '#6a6f98',
    500: '#2a396e',
    950: '#000000',
  },
}
SCSS
$custom: #2a396e;
$custom-light: #6a6f98;
$custom-dark: #000000;
JSON
{
  "hex": "#2a396e",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 110
  },
  "hsl": {
    "h": 226.765,
    "s": 44.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.36112,
    "c": 0.09333,
    "h": 269.4
  },
  "luminance": 0.04544
}

Semantic roles & 50–950 ramp

primary
#2A396E
secondary
#A08F54
accent
#B853D4
background
#F6F6F9
surface
#EBECF2
border
#C6C7CC
text
#07070D
muted
#7A7A7E

Preview Lab

Preview with #2A396E

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

Preview Lab → · Contrast checker → · Palette generator →

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