#2D286F#2D286F

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

Color values

HEX#2D286F
RGBrgb(45, 40, 111)
HSLhsl(244, 47%, 30%)
HSVhsv(244, 64%, 44%)
CMYKcmyk(59.5%, 64%, 0%, 56.5%)
CIE-LABlab(20.92, 24.53, -40.58)
CIE-LCHlch(20.92, 47.41, 301.15°)
OKLaboklab(32.84% 0.0222 -0.1165)
OKLCHoklch(32.84% 0.119 280.8)
XYZxyz(4.7093, 3.2229, 15.4098)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D286F #6A6F28
analogous
#28476F #2D286F #51286F
triadic
#2D286F #6F2D28 #286F2D
tetradic
#2D286F #6F2847 #6A6F28 #286F51
square
#2D286F #6F2847 #6A6F28 #286F51
split-complementary
#2D286F #6F5128 #476F28
monochromatic
#090816 #1B1842 #2D286F #3F389C #5951C0

Accessibility & contrast

On white

12.77
#2D286F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D286F
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D286F#FFFFFF#000000##FFFFFF
##2D286F1.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003571
Deuteranopia (green-blind)
#00306E
Tritanopia (blue-blind)
#0A3947
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2d286f;
/* rgb */ color: rgb(45, 40, 111);
/* oklch */ color: oklch(32.8% 0.119 280.8);
Tailwind
colors: {
  custom: {
    50: '#6d6299',
    500: '#2d286f',
    950: '#000000',
  },
}
SCSS
$custom: #2d286f;
$custom-light: #6d6299;
$custom-dark: #000000;
JSON
{
  "hex": "#2d286f",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 111
  },
  "hsl": {
    "h": 244.225,
    "s": 47.02,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32836,
    "c": 0.11863,
    "h": 280.8
  },
  "luminance": 0.03223
}

Semantic roles & 50–950 ramp

primary
#2D286F
secondary
#9CA151
accent
#D751CD
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #2D286F

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

Preview Lab → · Contrast checker → · Palette generator →

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