#2B238C#2B238C

#2B238C is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.165 H 276.8°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#2B238C
RGBrgb(43, 35, 140)
HSLhsl(245, 60%, 34%)
HSVhsv(245, 75%, 55%)
CMYKcmyk(69.3%, 75%, 0%, 45.1%)
CIE-LABlab(22.33, 37.44, -56.65)
CIE-LCHlch(22.33, 67.91, 303.46°)
OKLaboklab(34.66% 0.0196 -0.1637)
OKLCHoklch(34.66% 0.165 276.8)
XYZxyz(6.3294, 3.6085, 25.1688)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B238C #848C23
analogous
#23508C #2B238C #60238C
triadic
#2B238C #8C2B23 #238C2B
tetradic
#2B238C #8C2350 #848C23 #238C60
square
#2B238C #8C2350 #848C23 #238C60
split-complementary
#2B238C #8C6023 #508C23
monochromatic
#0D0B2A #1C175B #2B238C #3A2FBD #5F55D4

Accessibility & contrast

On white

12.20
#2B238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B238C
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B238C#FFFFFF#000000##FFFFFF
##2B238C1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00318A
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2b238c;
/* rgb */ color: rgb(43, 35, 140);
/* oklch */ color: oklch(34.7% 0.165 276.8);
Tailwind
colors: {
  custom: {
    50: '#7360af',
    500: '#2b238c',
    950: '#000000',
  },
}
SCSS
$custom: #2b238c;
$custom-light: #7360af;
$custom-dark: #000000;
JSON
{
  "hex": "#2b238c",
  "rgb": {
    "r": 43,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 244.571,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34658,
    "c": 0.16485,
    "h": 276.8
  },
  "luminance": 0.03609
}

Semantic roles & 50–950 ramp

primary
#2B238C
secondary
#B1B852
accent
#E345D7
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #2B238C

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

Preview Lab → · Contrast checker → · Palette generator →

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