#23287F#23287F

#23287F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.6% C 0.144 H 273.1°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#23287F
RGBrgb(35, 40, 127)
HSLhsl(237, 57%, 32%)
HSVhsv(237, 72%, 50%)
CMYKcmyk(72.4%, 68.5%, 0%, 50.2%)
CIE-LABlab(21.60, 28.71, -49.71)
CIE-LCHlch(21.60, 57.40, 300.01°)
OKLaboklab(33.59% 0.0079 -0.1436)
OKLCHoklch(33.59% 0.144 273.1)
XYZxyz(5.2814, 3.4067, 20.4538)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23287F #7F7A23
analogous
#23567F #23287F #4C237F
triadic
#23287F #7F2328 #287F23
tetradic
#23287F #7F2356 #7F7A23 #237F4C
square
#23287F #7F2356 #7F7A23 #237F4C
split-complementary
#23287F #7F4C23 #567F23
monochromatic
#090A1F #16194F #23287F #3037AF #4E55CE

Accessibility & contrast

On white

12.49
#23287F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#23287F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23287F
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23287F#FFFFFF#000000##FFFFFF
##23287F1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#003F50
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #23287f;
/* rgb */ color: rgb(35, 40, 127);
/* oklch */ color: oklch(33.6% 0.144 273.1);
Tailwind
colors: {
  custom: {
    50: '#6c62a5',
    500: '#23287f',
    950: '#000000',
  },
}
SCSS
$custom: #23287f;
$custom-light: #6c62a5;
$custom-dark: #000000;
JSON
{
  "hex": "#23287f",
  "rgb": {
    "r": 35,
    "g": 40,
    "b": 127
  },
  "hsl": {
    "h": 236.739,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33591,
    "c": 0.14382,
    "h": 273.1
  },
  "luminance": 0.03407
}

Semantic roles & 50–950 ramp

primary
#23287F
secondary
#B1AC4C
accent
#D848E0
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #23287F

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

Preview Lab → · Contrast checker → · Palette generator →

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