#2A3370#2A3370

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

Color values

HEX#2A3370
RGBrgb(42, 51, 112)
HSLhsl(232, 45%, 30%)
HSVhsv(232, 63%, 44%)
CMYKcmyk(62.5%, 54.5%, 0%, 56.1%)
CIE-LABlab(23.77, 16.71, -36.61)
CIE-LCHlch(23.77, 40.25, 294.53°)
OKLaboklab(34.92% 0.0062 -0.1048)
OKLCHoklch(34.92% 0.105 273.4)
XYZxyz(5.0623, 4.0294, 15.8371)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3370 #70672A
analogous
#2A5670 #2A3370 #442A70
triadic
#2A3370 #702A33 #33702A
tetradic
#2A3370 #702A56 #70672A #2A7044
square
#2A3370 #702A56 #70672A #2A7044
split-complementary
#2A3370 #70442A #56702A
monochromatic
#090A17 #191F43 #2A3370 #3B479D #5563BF

Accessibility & contrast

On white

11.63
#2A3370 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2A3370 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3370
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3370#FFFFFF#000000##FFFFFF
##2A33701.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103C72
Deuteranopia (green-blind)
#00366F
Tritanopia (blue-blind)
#00414C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a3370;
/* rgb */ color: rgb(42, 51, 112);
/* oklch */ color: oklch(34.9% 0.105 273.4);
Tailwind
colors: {
  custom: {
    50: '#6b6a99',
    500: '#2a3370',
    950: '#000000',
  },
}
SCSS
$custom: #2a3370;
$custom-light: #6b6a99;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3370",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 112
  },
  "hsl": {
    "h": 232.286,
    "s": 45.455,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34923,
    "c": 0.10503,
    "h": 273.4
  },
  "luminance": 0.0403
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A3370

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

Preview Lab → · Contrast checker → · Palette generator →

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