#2B295F#2B295F

#2B295F is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.5% C 0.093 H 281.3°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#2B295F
RGBrgb(43, 41, 95)
HSLhsl(242, 40%, 27%)
HSVhsv(242, 57%, 37%)
CMYKcmyk(54.7%, 56.8%, 0%, 62.7%)
CIE-LABlab(19.74, 17.71, -32.04)
CIE-LCHlch(19.74, 36.61, 298.93°)
OKLaboklab(31.52% 0.0183 -0.0915)
OKLCHoklch(31.52% 0.093 281.3)
XYZxyz(3.8541, 2.9255, 11.1858)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B295F #5D5F29
analogous
#29425F #2B295F #46295F
triadic
#2B295F #5F2B29 #295F2B
tetradic
#2B295F #5F2942 #5D5F29 #295F46
square
#2B295F #5F2942 #5D5F29 #295F46
split-complementary
#2B295F #5F4629 #425F29
monochromatic
#0A0915 #181734 #2B295F #3E3B8A #534FB3

Accessibility & contrast

On white

13.25
#2B295F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2B295F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B295F
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B295F#FFFFFF#000000##FFFFFF
##2B295F1.0013.251.5913.25
#FFFFFF13.251.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3261
Deuteranopia (green-blind)
#062E5E
Tritanopia (blue-blind)
#16353F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2b295f;
/* rgb */ color: rgb(43, 41, 95);
/* oklch */ color: oklch(31.5% 0.093 281.3);
Tailwind
colors: {
  custom: {
    50: '#69628d',
    500: '#2b295f',
    950: '#000000',
  },
}
SCSS
$custom: #2b295f;
$custom-light: #69628d;
$custom-dark: #000000;
JSON
{
  "hex": "#2b295f",
  "rgb": {
    "r": 43,
    "g": 41,
    "b": 95
  },
  "hsl": {
    "h": 242.222,
    "s": 39.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31522,
    "c": 0.09328,
    "h": 281.3
  },
  "luminance": 0.02926
}

Semantic roles & 50–950 ramp

primary
#2B295F
secondary
#8F9252
accent
#D058CB
background
#F6F5F8
surface
#EBEAF0
border
#C6C6CB
text
#07050C
muted
#7A797D

Preview Lab

Preview with #2B295F

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

Preview Lab → · Contrast checker → · Palette generator →

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