#23238D#23238D

#23238D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.168 H 273.0°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#23238D
RGBrgb(35, 35, 141)
HSLhsl(240, 60%, 35%)
HSVhsv(240, 75%, 55%)
CMYKcmyk(75.2%, 75.2%, 0%, 44.7%)
CIE-LABlab(21.88, 36.92, -58.04)
CIE-LCHlch(21.88, 68.79, 302.46°)
OKLaboklab(34.22% 0.0089 -0.1679)
OKLCHoklch(34.22% 0.168 273)
XYZxyz(6.1003, 3.4819, 25.5447)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23238D #8D8D23
analogous
#23588D #23238D #58238D
triadic
#23238D #8D2323 #238D23
tetradic
#23238D #8D2358 #8D8D23 #238D58
square
#23238D #8D2358 #8D8D23 #238D58
split-complementary
#23238D #8D5823 #588D23
monochromatic
#0B0B2B #17175C #23238D #2F2FBE #5555D5

Accessibility & contrast

On white

12.38
#23238D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#23238D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23238D
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23238D#FFFFFF#000000##FFFFFF
##23238D1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#002F8B
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #23238d;
/* rgb */ color: rgb(35, 35, 141);
/* oklch */ color: oklch(34.2% 0.168 273.0);
Tailwind
colors: {
  custom: {
    50: '#705faf',
    500: '#23238d',
    950: '#000000',
  },
}
SCSS
$custom: #23238d;
$custom-light: #705faf;
$custom-dark: #000000;
JSON
{
  "hex": "#23238d",
  "rgb": {
    "r": 35,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 240,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.3422,
    "c": 0.16818,
    "h": 273
  },
  "luminance": 0.03482
}

Semantic roles & 50–950 ramp

primary
#23238D
secondary
#B9B953
accent
#E344E3
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #23238D

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

Preview Lab → · Contrast checker → · Palette generator →

#23238D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva