#23238F#23238F

#23238F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.171 H 272.9°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#23238F
RGBrgb(35, 35, 143)
HSLhsl(240, 61%, 35%)
HSVhsv(240, 76%, 56%)
CMYKcmyk(75.5%, 75.5%, 0%, 43.9%)
CIE-LABlab(22.10, 37.61, -58.93)
CIE-LCHlch(22.10, 69.91, 302.55°)
OKLaboklab(34.44% 0.0086 -0.1705)
OKLCHoklch(34.44% 0.171 272.9)
XYZxyz(6.2504, 3.5419, 26.3355)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23238F #8F8F23
analogous
#23598F #23238F #59238F
triadic
#23238F #8F2323 #238F23
tetradic
#23238F #8F2359 #8F8F23 #238F59
square
#23238F #8F2359 #8F8F23 #238F59
split-complementary
#23238F #8F5923 #598F23
monochromatic
#0B0B2D #17175E #23238F #2F2FC0 #5757D6

Accessibility & contrast

On white

12.29
#23238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#23238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23238F
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23238F#FFFFFF#000000##FFFFFF
##23238F1.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00308D
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #23238f;
/* rgb */ color: rgb(35, 35, 143);
/* oklch */ color: oklch(34.4% 0.171 272.9);
Tailwind
colors: {
  custom: {
    50: '#715fb1',
    500: '#23238f',
    950: '#000000',
  },
}
SCSS
$custom: #23238f;
$custom-light: #715fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#23238f",
  "rgb": {
    "r": 35,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 240,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34439,
    "c": 0.17073,
    "h": 272.9
  },
  "luminance": 0.03543
}

Semantic roles & 50–950 ramp

primary
#23238F
secondary
#BABA54
accent
#E444E4
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #23238F

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

Preview Lab → · Contrast checker → · Palette generator →

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