#2B255E#2B255E

#2B255E is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.6% C 0.098 H 283.8°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#2B255E
RGBrgb(43, 37, 94)
HSLhsl(246, 44%, 26%)
HSVhsv(246, 61%, 37%)
CMYKcmyk(54.3%, 60.6%, 0%, 63.1%)
CIE-LABlab(18.56, 20.14, -33.29)
CIE-LCHlch(18.56, 38.91, 301.18°)
OKLaboklab(30.62% 0.0233 -0.0952)
OKLCHoklch(30.62% 0.098 283.8)
XYZxyz(3.6776, 2.6447, 10.9042)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B255E #585E25
analogous
#253B5E #2B255E #47255E
triadic
#2B255E #5E2B25 #255E2B
tetradic
#2B255E #5E253B #585E25 #255E47
square
#2B255E #5E253B #585E25 #255E47
split-complementary
#2B255E #5E4725 #3B5E25
monochromatic
#0A0916 #171432 #2B255E #3F368A #5348B6

Accessibility & contrast

On white

13.73
#2B255E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2B255E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B255E
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B255E#FFFFFF#000000##FFFFFF
##2B255E1.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012F60
Deuteranopia (green-blind)
#002B5D
Tritanopia (blue-blind)
#18323D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2b255e;
/* rgb */ color: rgb(43, 37, 94);
/* oklch */ color: oklch(30.6% 0.098 283.8);
Tailwind
colors: {
  custom: {
    50: '#695f8c',
    500: '#2b255e',
    950: '#000000',
  },
}
SCSS
$custom: #2b255e;
$custom-light: #695f8c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b255e",
  "rgb": {
    "r": 43,
    "g": 37,
    "b": 94
  },
  "hsl": {
    "h": 246.316,
    "s": 43.511,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30618,
    "c": 0.09798,
    "h": 283.8
  },
  "luminance": 0.02645
}

Semantic roles & 50–950 ramp

primary
#2B255E
secondary
#8A914D
accent
#D355C6
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2B255E

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

Preview Lab → · Contrast checker → · Palette generator →

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