#23237D#23237D

#23237D is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.147 H 274.5°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#23237D
RGBrgb(35, 35, 125)
HSLhsl(240, 56%, 31%)
HSVhsv(240, 72%, 49%)
CMYKcmyk(72%, 72%, 0%, 51%)
CIE-LABlab(20.20, 31.24, -50.74)
CIE-LCHlch(20.20, 59.59, 301.62°)
OKLaboklab(32.52% 0.0116 -0.1466)
OKLCHoklch(32.52% 0.147 274.5)
XYZxyz(4.9946, 3.0396, 19.7215)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23237D #7D7D23
analogous
#23507D #23237D #50237D
triadic
#23237D #7D2323 #237D23
tetradic
#23237D #7D2350 #7D7D23 #237D50
square
#23237D #7D2350 #7D7D23 #237D50
split-complementary
#23237D #7D5023 #507D23
monochromatic
#08081D #16164D #23237D #3030AD #4D4DCD

Accessibility & contrast

On white

13.06
#23237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#23237D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23237D
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23237D#FFFFFF#000000##FFFFFF
##23237D1.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#002D7B
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #23237d;
/* rgb */ color: rgb(35, 35, 125);
/* oklch */ color: oklch(32.5% 0.147 274.5);
Tailwind
colors: {
  custom: {
    50: '#6c5ea4',
    500: '#23237d',
    950: '#000000',
  },
}
SCSS
$custom: #23237d;
$custom-light: #6c5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#23237d",
  "rgb": {
    "r": 35,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 240,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32516,
    "c": 0.14711,
    "h": 274.5
  },
  "luminance": 0.0304
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #23237D

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

Preview Lab → · Contrast checker → · Palette generator →

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