#2A2F70#2A2F70

#2A2F70 is a dark, moderate blue. Relative luminance 0.037; OKLCH L 34.1% C 0.111 H 275.5°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#2A2F70
RGBrgb(42, 47, 112)
HSLhsl(236, 45%, 30%)
HSVhsv(236, 63%, 44%)
CMYKcmyk(62.5%, 58%, 0%, 56.1%)
CIE-LABlab(22.64, 19.49, -38.44)
CIE-LCHlch(22.64, 43.10, 296.89°)
OKLaboklab(34.07% 0.0107 -0.1103)
OKLCHoklch(34.07% 0.111 275.5)
XYZxyz(4.8950, 3.6948, 15.7813)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F70 #706B2A
analogous
#2A5270 #2A2F70 #482A70
triadic
#2A2F70 #702A2F #2F702A
tetradic
#2A2F70 #702A52 #706B2A #2A7048
square
#2A2F70 #702A52 #706B2A #2A7048
split-complementary
#2A2F70 #70482A #52702A
monochromatic
#090A17 #191C43 #2A2F70 #3B429D #555DBF

Accessibility & contrast

On white

12.08
#2A2F70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2A2F70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2F70
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F70#FFFFFF#000000##FFFFFF
##2A2F701.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013972
Deuteranopia (green-blind)
#00336F
Tritanopia (blue-blind)
#003E4A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a2f70;
/* rgb */ color: rgb(42, 47, 112);
/* oklch */ color: oklch(34.1% 0.111 275.5);
Tailwind
colors: {
  custom: {
    50: '#6b679a',
    500: '#2a2f70',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f70;
$custom-light: #6b679a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f70",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 112
  },
  "hsl": {
    "h": 235.714,
    "s": 45.455,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34074,
    "c": 0.11079,
    "h": 275.5
  },
  "luminance": 0.03695
}

Semantic roles & 50–950 ramp

primary
#2A2F70
secondary
#A29C54
accent
#CC53D5
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2A2F70

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

Preview Lab → · Contrast checker → · Palette generator →

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