#2D268F#2D268F

#2D268F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.6% C 0.165 H 276.9°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#2D268F
RGBrgb(45, 38, 143)
HSLhsl(244, 58%, 35%)
HSVhsv(244, 73%, 56%)
CMYKcmyk(68.5%, 73.4%, 0%, 43.9%)
CIE-LABlab(23.43, 36.92, -56.71)
CIE-LCHlch(23.43, 67.67, 303.07°)
OKLaboklab(35.57% 0.0198 -0.1638)
OKLCHoklch(35.57% 0.165 276.9)
XYZxyz(6.7316, 3.9267, 26.3845)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D268F #888F26
analogous
#26538F #2D268F #61268F
triadic
#2D268F #8F2D26 #268F2D
tetradic
#2D268F #8F2653 #888F26 #268F61
square
#2D268F #8F2653 #888F26 #268F61
split-complementary
#2D268F #8F6126 #538F26
monochromatic
#0F0C2E #1E195F #2D268F #3C33BF #645CD4

Accessibility & contrast

On white

11.76
#2D268F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2D268F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D268F
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D268F#FFFFFF#000000##FFFFFF
##2D268F1.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#004358
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2d268f;
/* rgb */ color: rgb(45, 38, 143);
/* oklch */ color: oklch(35.6% 0.165 276.9);
Tailwind
colors: {
  custom: {
    50: '#7462b1',
    500: '#2d268f',
    950: '#000000',
  },
}
SCSS
$custom: #2d268f;
$custom-light: #7462b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d268f",
  "rgb": {
    "r": 45,
    "g": 38,
    "b": 143
  },
  "hsl": {
    "h": 244,
    "s": 58.011,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35569,
    "c": 0.165,
    "h": 276.9
  },
  "luminance": 0.03927
}

Semantic roles & 50–950 ramp

primary
#2D268F
secondary
#B2B958
accent
#E147D7
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2D268F

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

Preview Lab → · Contrast checker → · Palette generator →

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