#2B238A#2B238A

#2B238A is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.4% C 0.162 H 277.1°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#2B238A
RGBrgb(43, 35, 138)
HSLhsl(245, 60%, 34%)
HSVhsv(245, 75%, 54%)
CMYKcmyk(68.8%, 74.6%, 0%, 45.9%)
CIE-LABlab(22.12, 36.76, -55.75)
CIE-LCHlch(22.12, 66.78, 303.40°)
OKLaboklab(34.45% 0.02 -0.161)
OKLCHoklch(34.45% 0.162 277.1)
XYZxyz(6.1832, 3.5501, 24.3992)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B238A #828A23
analogous
#234F8A #2B238A #5F238A
triadic
#2B238A #8A2B23 #238A2B
tetradic
#2B238A #8A234F #828A23 #238A5F
square
#2B238A #8A234F #828A23 #238A5F
split-complementary
#2B238A #8A5F23 #4F8A23
monochromatic
#0D0A28 #1C1759 #2B238A #3A2FBB #5E54D4

Accessibility & contrast

On white

12.28
#2B238A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2B238A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B238A
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B238A#FFFFFF#000000##FFFFFF
##2B238A1.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398D
Deuteranopia (green-blind)
#003088
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2b238a;
/* rgb */ color: rgb(43, 35, 138);
/* oklch */ color: oklch(34.4% 0.162 277.1);
Tailwind
colors: {
  custom: {
    50: '#725fad',
    500: '#2b238a',
    950: '#000000',
  },
}
SCSS
$custom: #2b238a;
$custom-light: #725fad;
$custom-dark: #000000;
JSON
{
  "hex": "#2b238a",
  "rgb": {
    "r": 43,
    "g": 35,
    "b": 138
  },
  "hsl": {
    "h": 244.66,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34447,
    "c": 0.16227,
    "h": 277.1
  },
  "luminance": 0.03551
}

Semantic roles & 50–950 ramp

primary
#2B238A
secondary
#B0B751
accent
#E345D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2B238A

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

Preview Lab → · Contrast checker → · Palette generator →

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