#231877#231877

#231877 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.151 H 277.5°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#231877
RGBrgb(35, 24, 119)
HSLhsl(247, 66%, 28%)
HSVhsv(247, 80%, 47%)
CMYKcmyk(70.6%, 79.8%, 0%, 53.3%)
CIE-LABlab(17.19, 35.77, -51.87)
CIE-LCHlch(17.19, 63.01, 304.59°)
OKLaboklab(30.18% 0.0197 -0.1499)
OKLCHoklch(30.18% 0.151 277.5)
XYZxyz(4.3485, 2.3421, 17.6721)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231877 #6C7718
analogous
#183D77 #231877 #521877
triadic
#231877 #772318 #187723
tetradic
#231877 #77183D #6C7718 #187752
square
#231877 #77183D #6C7718 #187752
split-complementary
#231877 #775218 #3D7718
monochromatic
#070519 #140E44 #231877 #3222AA #4633D6

Accessibility & contrast

On white

14.30
#231877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#231877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231877
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231877#FFFFFF#000000##FFFFFF
##2318771.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7A
Deuteranopia (green-blind)
#002675
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #231877;
/* rgb */ color: rgb(35, 24, 119);
/* oklch */ color: oklch(30.2% 0.151 277.5);
Tailwind
colors: {
  custom: {
    50: '#6c579f',
    500: '#231877',
    950: '#000000',
  },
}
SCSS
$custom: #231877;
$custom-light: #6c579f;
$custom-dark: #000000;
JSON
{
  "hex": "#231877",
  "rgb": {
    "r": 35,
    "g": 24,
    "b": 119
  },
  "hsl": {
    "h": 246.947,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30181,
    "c": 0.15117,
    "h": 277.5
  },
  "luminance": 0.02343
}

Semantic roles & 50–950 ramp

primary
#231877
secondary
#9FAC3F
accent
#E93ED6
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030F
muted
#7A787E

Preview Lab

Preview with #231877

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

Preview Lab → · Contrast checker → · Palette generator →

#231877 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva