#2D266F#2D266F

#2D266F is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.5% C 0.121 H 281.6°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#2D266F
RGBrgb(45, 38, 111)
HSLhsl(246, 49%, 29%)
HSVhsv(246, 66%, 44%)
CMYKcmyk(59.5%, 65.8%, 0%, 56.5%)
CIE-LABlab(20.41, 25.86, -41.41)
CIE-LCHlch(20.41, 48.82, 301.99°)
OKLaboklab(32.46% 0.0243 -0.119)
OKLCHoklch(32.46% 0.121 281.6)
XYZxyz(4.6437, 3.0915, 15.3879)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D266F #686F26
analogous
#26446F #2D266F #52266F
triadic
#2D266F #6F2D26 #266F2D
tetradic
#2D266F #6F2644 #686F26 #266F52
square
#2D266F #6F2644 #686F26 #266F52
split-complementary
#2D266F #6F5226 #446F26
monochromatic
#090817 #1B1641 #2D266F #3F369D #584DC2

Accessibility & contrast

On white

12.98
#2D266F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2D266F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D266F
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D266F#FFFFFF#000000##FFFFFF
##2D266F1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003471
Deuteranopia (green-blind)
#002F6E
Tritanopia (blue-blind)
#0A3846
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2d266f;
/* rgb */ color: rgb(45, 38, 111);
/* oklch */ color: oklch(32.5% 0.121 281.6);
Tailwind
colors: {
  custom: {
    50: '#6d6199',
    500: '#2d266f',
    950: '#000000',
  },
}
SCSS
$custom: #2d266f;
$custom-light: #6d6199;
$custom-dark: #000000;
JSON
{
  "hex": "#2d266f",
  "rgb": {
    "r": 45,
    "g": 38,
    "b": 111
  },
  "hsl": {
    "h": 245.753,
    "s": 48.993,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32463,
    "c": 0.12143,
    "h": 281.6
  },
  "luminance": 0.03092
}

Semantic roles & 50–950 ramp

primary
#2D266F
secondary
#9AA24F
accent
#D94FCB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2D266F

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

Preview Lab → · Contrast checker → · Palette generator →

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