#2A2F63#2A2F63

#2A2F63 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 33.0% C 0.091 H 276.1°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#2A2F63
RGBrgb(42, 47, 99)
HSLhsl(235, 40%, 28%)
HSVhsv(235, 58%, 39%)
CMYKcmyk(57.6%, 52.5%, 0%, 61.2%)
CIE-LABlab(21.67, 14.70, -31.57)
CIE-LCHlch(21.67, 34.82, 294.97°)
OKLaboklab(33.05% 0.0097 -0.0901)
OKLCHoklch(33.05% 0.091 276.1)
XYZxyz(4.2228, 3.4258, 12.2407)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F63 #635E2A
analogous
#2A4B63 #2A2F63 #412A63
triadic
#2A2F63 #632A2F #2F632A
tetradic
#2A2F63 #632A4B #635E2A #2A6341
square
#2A2F63 #632A4B #635E2A #2A6341
split-complementary
#2A2F63 #63412A #4B632A
monochromatic
#090A15 #181B38 #2A2F63 #3C438E #525BB6

Accessibility & contrast

On white

12.46
#2A2F63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2F63
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F63#FFFFFF#000000##FFFFFF
##2A2F631.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163665
Deuteranopia (green-blind)
#0E3262
Tritanopia (blue-blind)
#0E3B44
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a2f63;
/* rgb */ color: rgb(42, 47, 99);
/* oklch */ color: oklch(33.0% 0.091 276.1);
Tailwind
colors: {
  custom: {
    50: '#696790',
    500: '#2a2f63',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f63;
$custom-light: #696790;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f63",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 99
  },
  "hsl": {
    "h": 234.737,
    "s": 40.426,
    "l": 27.647
  },
  "oklch": {
    "l": 0.33045,
    "c": 0.09058,
    "h": 276.1
  },
  "luminance": 0.03426
}

Semantic roles & 50–950 ramp

primary
#2A2F63
secondary
#959053
accent
#C658D0
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#06060C
muted
#7A7A7D

Preview Lab

Preview with #2A2F63

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

Preview Lab → · Contrast checker → · Palette generator →

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