#2B288F#2B288F

#2B288F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.7% C 0.163 H 275.5°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#2B288F
RGBrgb(43, 40, 143)
HSLhsl(242, 56%, 36%)
HSVhsv(242, 72%, 56%)
CMYKcmyk(69.9%, 72%, 0%, 43.9%)
CIE-LABlab(23.72, 35.47, -56.24)
CIE-LCHlch(23.72, 66.49, 302.24°)
OKLaboklab(35.74% 0.0158 -0.1625)
OKLCHoklch(35.74% 0.163 275.5)
XYZxyz(6.7113, 4.0137, 26.4023)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B288F #8C8F28
analogous
#28588F #2B288F #5E288F
triadic
#2B288F #8F2B28 #288F2B
tetradic
#2B288F #8F2858 #8C8F28 #288F5E
square
#2B288F #8F2858 #8C8F28 #288F5E
split-complementary
#2B288F #8F5E28 #588F28
monochromatic
#0E0D2F #1D1B5F #2B288F #3935BF #625FD2

Accessibility & contrast

On white

11.65
#2B288F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2B288F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B288F
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B288F#FFFFFF#000000##FFFFFF
##2B288F1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00348D
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2b288f;
/* rgb */ color: rgb(43, 40, 143);
/* oklch */ color: oklch(35.7% 0.163 275.5);
Tailwind
colors: {
  custom: {
    50: '#7363b1',
    500: '#2b288f',
    950: '#000000',
  },
}
SCSS
$custom: #2b288f;
$custom-light: #7363b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b288f",
  "rgb": {
    "r": 43,
    "g": 40,
    "b": 143
  },
  "hsl": {
    "h": 241.748,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35738,
    "c": 0.16325,
    "h": 275.5
  },
  "luminance": 0.04014
}

Semantic roles & 50–950 ramp

primary
#2B288F
secondary
#B5B85B
accent
#E048DB
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2B288F

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

Preview Lab → · Contrast checker → · Palette generator →

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