#2A336F#2A336F

#2A336F is a dark, moderate blue. Relative luminance 0.040; OKLCH L 34.8% C 0.103 H 273.4°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#2A336F
RGBrgb(42, 51, 111)
HSLhsl(232, 45%, 30%)
HSVhsv(232, 62%, 44%)
CMYKcmyk(62.2%, 54.1%, 0%, 56.5%)
CIE-LABlab(23.70, 16.33, -36.09)
CIE-LCHlch(23.70, 39.62, 294.35°)
OKLaboklab(34.85% 0.0061 -0.1033)
OKLCHoklch(34.85% 0.103 273.4)
XYZxyz(5.0070, 4.0072, 15.5455)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A336F #6F662A
analogous
#2A556F #2A336F #442A6F
triadic
#2A336F #6F2A33 #336F2A
tetradic
#2A336F #6F2A55 #6F662A #2A6F44
square
#2A336F #6F2A55 #6F662A #2A6F44
split-complementary
#2A336F #6F442A #556F2A
monochromatic
#080A16 #191F43 #2A336F #3B479B #5563BF

Accessibility & contrast

On white

11.66
#2A336F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2A336F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A336F
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A336F#FFFFFF#000000##FFFFFF
##2A336F1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113B71
Deuteranopia (green-blind)
#02366E
Tritanopia (blue-blind)
#00414B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a336f;
/* rgb */ color: rgb(42, 51, 111);
/* oklch */ color: oklch(34.8% 0.103 273.4);
Tailwind
colors: {
  custom: {
    50: '#6b6a99',
    500: '#2a336f',
    950: '#000000',
  },
}
SCSS
$custom: #2a336f;
$custom-light: #6b6a99;
$custom-dark: #000000;
JSON
{
  "hex": "#2a336f",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 111
  },
  "hsl": {
    "h": 232.174,
    "s": 45.098,
    "l": 30
  },
  "oklch": {
    "l": 0.34845,
    "c": 0.10349,
    "h": 273.4
  },
  "luminance": 0.04008
}

Semantic roles & 50–950 ramp

primary
#2A336F
secondary
#A19754
accent
#C453D5
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2A336F

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

Preview Lab → · Contrast checker → · Palette generator →

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