#2B238D#2B238D

#2B238D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.166 H 276.7°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#2B238D
RGBrgb(43, 35, 141)
HSLhsl(245, 60%, 35%)
HSVhsv(245, 75%, 55%)
CMYKcmyk(69.5%, 75.2%, 0%, 44.7%)
CIE-LABlab(22.44, 37.77, -57.10)
CIE-LCHlch(22.44, 68.47, 303.48°)
OKLaboklab(34.76% 0.0194 -0.165)
OKLCHoklch(34.76% 0.166 276.7)
XYZxyz(6.4034, 3.6382, 25.5589)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B238D #858D23
analogous
#23508D #2B238D #60238D
triadic
#2B238D #8D2B23 #238D2B
tetradic
#2B238D #8D2350 #858D23 #238D60
square
#2B238D #8D2350 #858D23 #238D60
split-complementary
#2B238D #8D6023 #508D23
monochromatic
#0D0B2B #1C175C #2B238D #3A2FBE #5F55D5

Accessibility & contrast

On white

12.15
#2B238D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2B238D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B238D
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B238D#FFFFFF#000000##FFFFFF
##2B238D1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00318B
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2b238d;
/* rgb */ color: rgb(43, 35, 141);
/* oklch */ color: oklch(34.8% 0.166 276.7);
Tailwind
colors: {
  custom: {
    50: '#7360af',
    500: '#2b238d',
    950: '#000000',
  },
}
SCSS
$custom: #2b238d;
$custom-light: #7360af;
$custom-dark: #000000;
JSON
{
  "hex": "#2b238d",
  "rgb": {
    "r": 43,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 244.528,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34763,
    "c": 0.16612,
    "h": 276.7
  },
  "luminance": 0.03639
}

Semantic roles & 50–950 ramp

primary
#2B238D
secondary
#B1B953
accent
#E344D7
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #2B238D

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

Preview Lab → · Contrast checker → · Palette generator →

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