#2B245E#2B245E

#2B245E is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.4% C 0.100 H 284.3°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#2B245E
RGBrgb(43, 36, 94)
HSLhsl(247, 45%, 25%)
HSVhsv(247, 62%, 37%)
CMYKcmyk(54.3%, 61.7%, 0%, 63.1%)
CIE-LABlab(18.29, 20.83, -33.73)
CIE-LCHlch(18.29, 39.64, 301.71°)
OKLaboklab(30.42% 0.0245 -0.0965)
OKLCHoklch(30.42% 0.1 284.3)
XYZxyz(3.6469, 2.5833, 10.8940)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B245E #575E24
analogous
#243A5E #2B245E #48245E
triadic
#2B245E #5E2B24 #245E2B
tetradic
#2B245E #5E243A #575E24 #245E48
square
#2B245E #5E243A #575E24 #245E48
split-complementary
#2B245E #5E4824 #3A5E24
monochromatic
#0A0816 #171332 #2B245E #3F358A #5346B7

Accessibility & contrast

On white

13.85
#2B245E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2B245E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B245E
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B245E#FFFFFF#000000##FFFFFF
##2B245E1.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E60
Deuteranopia (green-blind)
#002B5D
Tritanopia (blue-blind)
#18313D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2b245e;
/* rgb */ color: rgb(43, 36, 94);
/* oklch */ color: oklch(30.4% 0.100 284.3);
Tailwind
colors: {
  custom: {
    50: '#695f8c',
    500: '#2b245e',
    950: '#000000',
  },
}
SCSS
$custom: #2b245e;
$custom-light: #695f8c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b245e",
  "rgb": {
    "r": 43,
    "g": 36,
    "b": 94
  },
  "hsl": {
    "h": 247.241,
    "s": 44.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30419,
    "c": 0.09953,
    "h": 284.3
  },
  "luminance": 0.02583
}

Semantic roles & 50–950 ramp

primary
#2B245E
secondary
#89924C
accent
#D453C5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2B245E

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

Preview Lab → · Contrast checker → · Palette generator →

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