#23237C#23237C

#23237C is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.4% C 0.146 H 274.6°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#23237C
RGBrgb(35, 35, 124)
HSLhsl(240, 56%, 31%)
HSVhsv(240, 72%, 49%)
CMYKcmyk(71.8%, 71.8%, 0%, 51.4%)
CIE-LABlab(20.10, 30.88, -50.27)
CIE-LCHlch(20.10, 59.00, 301.56°)
OKLaboklab(32.41% 0.0117 -0.1453)
OKLCHoklch(32.41% 0.146 274.6)
XYZxyz(4.9311, 3.0142, 19.3868)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23237C #7C7C23
analogous
#234F7C #23237C #4F237C
triadic
#23237C #7C2323 #237C23
tetradic
#23237C #7C234F #7C7C23 #237C4F
square
#23237C #7C234F #7C7C23 #237C4F
split-complementary
#23237C #7C4F23 #4F7C23
monochromatic
#08081D #16164C #23237C #3030AC #4D4DCD

Accessibility & contrast

On white

13.10
#23237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #23237C
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23237C#FFFFFF#000000##FFFFFF
##23237C1.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#002C7A
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #23237c;
/* rgb */ color: rgb(35, 35, 124);
/* oklch */ color: oklch(32.4% 0.146 274.6);
Tailwind
colors: {
  custom: {
    50: '#6c5ea3',
    500: '#23237c',
    950: '#000000',
  },
}
SCSS
$custom: #23237c;
$custom-light: #6c5ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#23237c",
  "rgb": {
    "r": 35,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 240,
    "s": 55.975,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32413,
    "c": 0.14574,
    "h": 274.6
  },
  "luminance": 0.03015
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #23237C

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

Preview Lab → · Contrast checker → · Palette generator →

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