#23147F#23147F

#23147F is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.6% C 0.165 H 276.7°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#23147F
RGBrgb(35, 20, 127)
HSLhsl(248, 73%, 29%)
HSVhsv(248, 84%, 50%)
CMYKcmyk(72.4%, 84.3%, 0%, 50.2%)
CIE-LABlab(17.41, 40.45, -56.62)
CIE-LCHlch(17.41, 69.59, 305.54°)
OKLaboklab(30.61% 0.0194 -0.1636)
OKLCHoklch(30.61% 0.165 276.7)
XYZxyz(4.7728, 2.3895, 20.2843)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23147F #707F14
analogous
#143B7F #23147F #59147F
triadic
#23147F #7F2314 #147F23
tetradic
#23147F #7F143B #707F14 #147F59
square
#23147F #7F143B #707F14 #147F59
split-complementary
#23147F #7F5914 #3B7F14
monochromatic
#07041A #140C4A #23147F #321CB4 #482FDE

Accessibility & contrast

On white

14.21
#23147F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#23147F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23147F
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23147F#FFFFFF#000000##FFFFFF
##23147F1.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00267D
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #23147f;
/* rgb */ color: rgb(35, 20, 127);
/* oklch */ color: oklch(30.6% 0.165 276.7);
Tailwind
colors: {
  custom: {
    50: '#6e56a5',
    500: '#23147f',
    950: '#000000',
  },
}
SCSS
$custom: #23147f;
$custom-light: #6e56a5;
$custom-dark: #000000;
JSON
{
  "hex": "#23147f",
  "rgb": {
    "r": 35,
    "g": 20,
    "b": 127
  },
  "hsl": {
    "h": 248.411,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30613,
    "c": 0.16476,
    "h": 276.7
  },
  "luminance": 0.0239
}

Semantic roles & 50–950 ramp

primary
#23147F
secondary
#A3B43B
accent
#EF38D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #23147F

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

Preview Lab → · Contrast checker → · Palette generator →

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