#2A2F75#2A2F75

#2A2F75 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.5% C 0.118 H 275.2°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#2A2F75
RGBrgb(42, 47, 117)
HSLhsl(236, 47%, 31%)
HSVhsv(236, 64%, 46%)
CMYKcmyk(64.1%, 59.8%, 0%, 54.1%)
CIE-LABlab(23.03, 21.35, -41.01)
CIE-LCHlch(23.03, 46.23, 297.50°)
OKLaboklab(34.49% 0.0108 -0.1178)
OKLCHoklch(34.49% 0.118 275.2)
XYZxyz(5.1812, 3.8092, 17.2884)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F75 #75702A
analogous
#2A5475 #2A2F75 #4A2A75
triadic
#2A2F75 #752A2F #2F752A
tetradic
#2A2F75 #752A54 #75702A #2A754A
square
#2A2F75 #752A54 #75702A #2A754A
split-complementary
#2A2F75 #754A2A #54752A
monochromatic
#0A0B1B #1A1D48 #2A2F75 #3A41A2 #575EC3

Accessibility & contrast

On white

11.92
#2A2F75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2A2F75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2F75
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F75#FFFFFF#000000##FFFFFF
##2A2F751.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A77
Deuteranopia (green-blind)
#003474
Tritanopia (blue-blind)
#00404D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a2f75;
/* rgb */ color: rgb(42, 47, 117);
/* oklch */ color: oklch(34.5% 0.118 275.2);
Tailwind
colors: {
  custom: {
    50: '#6c679d',
    500: '#2a2f75',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f75;
$custom-light: #6c679d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f75",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 117
  },
  "hsl": {
    "h": 236,
    "s": 47.17,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34493,
    "c": 0.11831,
    "h": 275.2
  },
  "luminance": 0.0381
}

Semantic roles & 50–950 ramp

primary
#2A2F75
secondary
#A7A154
accent
#CE51D7
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2A2F75

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

Preview Lab → · Contrast checker → · Palette generator →

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