#23237B#23237B

#23237B is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.3% C 0.144 H 274.7°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#23237B
RGBrgb(35, 35, 123)
HSLhsl(240, 56%, 31%)
HSVhsv(240, 72%, 48%)
CMYKcmyk(71.5%, 71.5%, 0%, 51.8%)
CIE-LABlab(20.00, 30.51, -49.80)
CIE-LCHlch(20.00, 58.41, 301.50°)
OKLaboklab(32.31% 0.0119 -0.1439)
OKLCHoklch(32.31% 0.144 274.7)
XYZxyz(4.8681, 2.9890, 19.0554)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23237B #7B7B23
analogous
#234F7B #23237B #4F237B
triadic
#23237B #7B2323 #237B23
tetradic
#23237B #7B234F #7B7B23 #237B4F
square
#23237B #7B234F #7B7B23 #237B4F
split-complementary
#23237B #7B4F23 #4F7B23
monochromatic
#08081C #15154B #23237B #3131AB #4C4CCC

Accessibility & contrast

On white

13.14
#23237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#23237B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23237B
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23237B#FFFFFF#000000##FFFFFF
##23237B1.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#002C79
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #23237b;
/* rgb */ color: rgb(35, 35, 123);
/* oklch */ color: oklch(32.3% 0.144 274.7);
Tailwind
colors: {
  custom: {
    50: '#6c5ea2',
    500: '#23237b',
    950: '#000000',
  },
}
SCSS
$custom: #23237b;
$custom-light: #6c5ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#23237b",
  "rgb": {
    "r": 35,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 240,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3231,
    "c": 0.14439,
    "h": 274.7
  },
  "luminance": 0.02989
}

Semantic roles & 50–950 ramp

primary
#23237B
secondary
#AEAE4C
accent
#DF49DF
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #23237B

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

Preview Lab → · Contrast checker → · Palette generator →

#23237B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva