#2A2F65#2A2F65

#2A2F65 is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.2% C 0.094 H 276.0°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#2A2F65
RGBrgb(42, 47, 101)
HSLhsl(235, 41%, 28%)
HSVhsv(235, 58%, 40%)
CMYKcmyk(58.4%, 53.5%, 0%, 60.4%)
CIE-LABlab(21.82, 15.43, -32.65)
CIE-LCHlch(21.82, 36.11, 295.30°)
OKLaboklab(33.2% 0.0099 -0.0932)
OKLCHoklch(33.2% 0.094 276)
XYZxyz(4.3196, 3.4646, 12.7505)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F65 #65602A
analogous
#2A4C65 #2A2F65 #422A65
triadic
#2A2F65 #652A2F #2F652A
tetradic
#2A2F65 #652A4C #65602A #2A6542
square
#2A2F65 #652A4C #65602A #2A6542
split-complementary
#2A2F65 #65422A #4C652A
monochromatic
#090A16 #181B3A #2A2F65 #3C4390 #525BB7

Accessibility & contrast

On white

12.40
#2A2F65 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2A2F65 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2F65
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F65#FFFFFF#000000##FFFFFF
##2A2F651.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143767
Deuteranopia (green-blind)
#0B3264
Tritanopia (blue-blind)
#0C3B45
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a2f65;
/* rgb */ color: rgb(42, 47, 101);
/* oklch */ color: oklch(33.2% 0.094 276.0);
Tailwind
colors: {
  custom: {
    50: '#696791',
    500: '#2a2f65',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f65;
$custom-light: #696791;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f65",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 101
  },
  "hsl": {
    "h": 234.915,
    "s": 41.259,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33197,
    "c": 0.09375,
    "h": 276
  },
  "luminance": 0.03465
}

Semantic roles & 50–950 ramp

primary
#2A2F65
secondary
#979253
accent
#C757D1
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#07060D
muted
#7A7A7D

Preview Lab

Preview with #2A2F65

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

Preview Lab → · Contrast checker → · Palette generator →

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