#2B286F#2B286F

#2B286F is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.7% C 0.119 H 279.4°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#2B286F
RGBrgb(43, 40, 111)
HSLhsl(243, 47%, 30%)
HSVhsv(243, 64%, 44%)
CMYKcmyk(61.3%, 64%, 0%, 56.5%)
CIE-LABlab(20.75, 24.14, -40.86)
CIE-LCHlch(20.75, 47.46, 300.57°)
OKLaboklab(32.67% 0.0194 -0.1174)
OKLCHoklch(32.67% 0.119 279.4)
XYZxyz(4.6234, 3.1785, 15.4057)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B286F #6C6F28
analogous
#28496F #2B286F #4F286F
triadic
#2B286F #6F2B28 #286F2B
tetradic
#2B286F #6F2849 #6C6F28 #286F4F
square
#2B286F #6F2849 #6C6F28 #286F4F
split-complementary
#2B286F #6F4F28 #496F28
monochromatic
#090816 #1A1842 #2B286F #3C389C #5651C0

Accessibility & contrast

On white

12.84
#2B286F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2B286F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B286F
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B286F#FFFFFF#000000##FFFFFF
##2B286F1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003571
Deuteranopia (green-blind)
#002F6E
Tritanopia (blue-blind)
#013947
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2b286f;
/* rgb */ color: rgb(43, 40, 111);
/* oklch */ color: oklch(32.7% 0.119 279.4);
Tailwind
colors: {
  custom: {
    50: '#6c6299',
    500: '#2b286f',
    950: '#000000',
  },
}
SCSS
$custom: #2b286f;
$custom-light: #6c6299;
$custom-dark: #000000;
JSON
{
  "hex": "#2b286f",
  "rgb": {
    "r": 43,
    "g": 40,
    "b": 111
  },
  "hsl": {
    "h": 242.535,
    "s": 47.02,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32668,
    "c": 0.11903,
    "h": 279.4
  },
  "luminance": 0.03179
}

Semantic roles & 50–950 ramp

primary
#2B286F
secondary
#9EA151
accent
#D751D1
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #2B286F

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

Preview Lab → · Contrast checker → · Palette generator →

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