#2A2F66#2A2F66

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

Color values

HEX#2A2F66
RGBrgb(42, 47, 102)
HSLhsl(235, 42%, 28%)
HSVhsv(235, 59%, 40%)
CMYKcmyk(58.8%, 53.9%, 0%, 60%)
CIE-LABlab(21.89, 15.80, -33.18)
CIE-LCHlch(21.89, 36.75, 295.46°)
OKLaboklab(33.27% 0.01 -0.0948)
OKLCHoklch(33.27% 0.095 276)
XYZxyz(4.3689, 3.4843, 13.0101)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F66 #66612A
analogous
#2A4D66 #2A2F66 #432A66
triadic
#2A2F66 #662A2F #2F662A
tetradic
#2A2F66 #662A4D #66612A #2A6643
square
#2A2F66 #662A4D #66612A #2A6643
split-complementary
#2A2F66 #66432A #4D662A
monochromatic
#090A16 #181B3B #2A2F66 #3C4391 #525BB8

Accessibility & contrast

On white

12.37
#2A2F66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2A2F66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2F66
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F66#FFFFFF#000000##FFFFFF
##2A2F661.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123768
Deuteranopia (green-blind)
#093265
Tritanopia (blue-blind)
#0A3B45
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a2f66;
/* rgb */ color: rgb(42, 47, 102);
/* oklch */ color: oklch(33.3% 0.095 276.0);
Tailwind
colors: {
  custom: {
    50: '#696792',
    500: '#2a2f66',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f66;
$custom-light: #696792;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f66",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 102
  },
  "hsl": {
    "h": 235,
    "s": 41.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33274,
    "c": 0.09533,
    "h": 276
  },
  "luminance": 0.03485
}

Semantic roles & 50–950 ramp

primary
#2A2F66
secondary
#989354
accent
#C756D1
background
#F6F6F9
surface
#EBEBF1
border
#C6C6CB
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #2A2F66

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

Preview Lab → · Contrast checker → · Palette generator →

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