#23237F#23237F

#23237F is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.7% C 0.150 H 274.3°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#23237F
RGBrgb(35, 35, 127)
HSLhsl(240, 57%, 32%)
HSVhsv(240, 72%, 50%)
CMYKcmyk(72.4%, 72.4%, 0%, 50.2%)
CIE-LABlab(20.41, 31.96, -51.68)
CIE-LCHlch(20.41, 60.76, 301.73°)
OKLaboklab(32.73% 0.0113 -0.1494)
OKLCHoklch(32.73% 0.15 274.3)
XYZxyz(5.1237, 3.0912, 20.4012)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23237F #7F7F23
analogous
#23517F #23237F #51237F
triadic
#23237F #7F2323 #237F23
tetradic
#23237F #7F2351 #7F7F23 #237F51
square
#23237F #7F2351 #7F7F23 #237F51
split-complementary
#23237F #7F5123 #517F23
monochromatic
#09091F #16164F #23237F #3030AF #4E4ECE

Accessibility & contrast

On white

12.98
#23237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#23237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23237F
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23237F#FFFFFF#000000##FFFFFF
##23237F1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #23237f;
/* rgb */ color: rgb(35, 35, 127);
/* oklch */ color: oklch(32.7% 0.150 274.3);
Tailwind
colors: {
  custom: {
    50: '#6d5fa5',
    500: '#23237f',
    950: '#000000',
  },
}
SCSS
$custom: #23237f;
$custom-light: #6d5fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#23237f",
  "rgb": {
    "r": 35,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 240,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32725,
    "c": 0.1498,
    "h": 274.3
  },
  "luminance": 0.03092
}

Semantic roles & 50–950 ramp

primary
#23237F
secondary
#B1B14C
accent
#E048E0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #23237F

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

Preview Lab → · Contrast checker → · Palette generator →

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