#2A396D#2A396D

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

Color values

HEX#2A396D
RGBrgb(42, 57, 109)
HSLhsl(227, 44%, 30%)
HSVhsv(227, 61%, 43%)
CMYKcmyk(61.5%, 47.7%, 0%, 57.3%)
CIE-LABlab(25.33, 11.40, -32.19)
CIE-LCHlch(25.33, 34.15, 289.50°)
OKLaboklab(36.04% -0.0011 -0.0918)
OKLCHoklch(36.04% 0.092 269.3)
XYZxyz(5.1774, 4.5222, 15.0651)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A396D #6D5E2A
analogous
#2A5B6D #2A396D #3D2A6D
triadic
#2A396D #6D2A39 #396D2A
tetradic
#2A396D #6D2A5B #6D5E2A #2A6D3D
square
#2A396D #6D2A5B #6D5E2A #2A6D3D
split-complementary
#2A396D #6D3D2A #5B6D2A
monochromatic
#090C16 #192241 #2A396D #3B5099 #546CBD

Accessibility & contrast

On white

11.03
#2A396D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A396D
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A396D#FFFFFF#000000##FFFFFF
##2A396D1.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#213F6F
Deuteranopia (green-blind)
#18396C
Tritanopia (blue-blind)
#00454D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a396d;
/* rgb */ color: rgb(42, 57, 109);
/* oklch */ color: oklch(36.0% 0.092 269.3);
Tailwind
colors: {
  custom: {
    50: '#6a6f97',
    500: '#2a396d',
    950: '#000000',
  },
}
SCSS
$custom: #2a396d;
$custom-light: #6a6f97;
$custom-dark: #000000;
JSON
{
  "hex": "#2a396d",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 109
  },
  "hsl": {
    "h": 226.567,
    "s": 44.371,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3604,
    "c": 0.09177,
    "h": 269.3
  },
  "luminance": 0.04523
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A396D

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

Preview Lab → · Contrast checker → · Palette generator →

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