#2A336E#2A336E

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

Color values

HEX#2A336E
RGBrgb(42, 51, 110)
HSLhsl(232, 45%, 30%)
HSVhsv(232, 62%, 43%)
CMYKcmyk(61.8%, 53.6%, 0%, 56.9%)
CIE-LABlab(23.62, 15.96, -35.57)
CIE-LCHlch(23.62, 38.98, 294.17°)
OKLaboklab(34.77% 0.006 -0.1018)
OKLCHoklch(34.77% 0.102 273.4)
XYZxyz(4.9522, 3.9853, 15.2571)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A336E #6E652A
analogous
#2A556E #2A336E #432A6E
triadic
#2A336E #6E2A33 #336E2A
tetradic
#2A336E #6E2A55 #6E652A #2A6E43
square
#2A336E #6E2A55 #6E652A #2A6E43
split-complementary
#2A336E #6E432A #556E2A
monochromatic
#080A16 #191E42 #2A336E #3B489A #5562BE

Accessibility & contrast

On white

11.68
#2A336E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A336E
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A336E#FFFFFF#000000##FFFFFF
##2A336E1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133B70
Deuteranopia (green-blind)
#05356D
Tritanopia (blue-blind)
#00404B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a336e;
/* rgb */ color: rgb(42, 51, 110);
/* oklch */ color: oklch(34.8% 0.102 273.4);
Tailwind
colors: {
  custom: {
    50: '#6b6a98',
    500: '#2a336e',
    950: '#000000',
  },
}
SCSS
$custom: #2a336e;
$custom-light: #6b6a98;
$custom-dark: #000000;
JSON
{
  "hex": "#2a336e",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 110
  },
  "hsl": {
    "h": 232.059,
    "s": 44.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.34767,
    "c": 0.10195,
    "h": 273.4
  },
  "luminance": 0.03986
}

Semantic roles & 50–950 ramp

primary
#2A336E
secondary
#A09654
accent
#C353D4
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2A336E

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

Preview Lab → · Contrast checker → · Palette generator →

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