#2B238B#2B238B

#2B238B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.6% C 0.164 H 276.9°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#2B238B
RGBrgb(43, 35, 139)
HSLhsl(245, 60%, 34%)
HSVhsv(245, 75%, 55%)
CMYKcmyk(69.1%, 74.8%, 0%, 45.5%)
CIE-LABlab(22.23, 37.10, -56.20)
CIE-LCHlch(22.23, 67.34, 303.43°)
OKLaboklab(34.55% 0.0198 -0.1624)
OKLCHoklch(34.55% 0.164 276.9)
XYZxyz(6.2560, 3.5792, 24.7823)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B238B #838B23
analogous
#234F8B #2B238B #5F238B
triadic
#2B238B #8B2B23 #238B2B
tetradic
#2B238B #8B234F #838B23 #238B5F
square
#2B238B #8B234F #838B23 #238B5F
split-complementary
#2B238B #8B5F23 #4F8B23
monochromatic
#0D0A29 #1C175A #2B238B #3A2FBC #5E54D4

Accessibility & contrast

On white

12.24
#2B238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2B238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B238B
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B238B#FFFFFF#000000##FFFFFF
##2B238B1.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#003189
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2b238b;
/* rgb */ color: rgb(43, 35, 139);
/* oklch */ color: oklch(34.6% 0.164 276.9);
Tailwind
colors: {
  custom: {
    50: '#735fae',
    500: '#2b238b',
    950: '#000000',
  },
}
SCSS
$custom: #2b238b;
$custom-light: #735fae;
$custom-dark: #000000;
JSON
{
  "hex": "#2b238b",
  "rgb": {
    "r": 43,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 244.615,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34552,
    "c": 0.16356,
    "h": 276.9
  },
  "luminance": 0.0358
}

Semantic roles & 50–950 ramp

primary
#2B238B
secondary
#B0B852
accent
#E345D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2B238B

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

Preview Lab → · Contrast checker → · Palette generator →

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