#231977#231977

#231977 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.3% C 0.150 H 277.3°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#231977
RGBrgb(35, 25, 119)
HSLhsl(246, 65%, 28%)
HSVhsv(246, 79%, 47%)
CMYKcmyk(70.6%, 79%, 0%, 53.3%)
CIE-LABlab(17.39, 35.21, -51.55)
CIE-LCHlch(17.39, 62.43, 304.34°)
OKLaboklab(30.32% 0.0191 -0.1489)
OKLCHoklch(30.32% 0.15 277.3)
XYZxyz(4.3695, 2.3841, 17.6791)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231977 #6D7719
analogous
#193E77 #231977 #521977
triadic
#231977 #772319 #197723
tetradic
#231977 #77193E #6D7719 #197752
square
#231977 #77193E #6D7719 #197752
split-complementary
#231977 #775219 #3E7719
monochromatic
#070519 #140E44 #231977 #3224AA #4736D5

Accessibility & contrast

On white

14.22
#231977 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#231977 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231977
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231977#FFFFFF#000000##FFFFFF
##2319771.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7A
Deuteranopia (green-blind)
#002775
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #231977;
/* rgb */ color: rgb(35, 25, 119);
/* oklch */ color: oklch(30.3% 0.150 277.3);
Tailwind
colors: {
  custom: {
    50: '#6c589f',
    500: '#231977',
    950: '#000000',
  },
}
SCSS
$custom: #231977;
$custom-light: #6c589f;
$custom-dark: #000000;
JSON
{
  "hex": "#231977",
  "rgb": {
    "r": 35,
    "g": 25,
    "b": 119
  },
  "hsl": {
    "h": 246.383,
    "s": 65.278,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3032,
    "c": 0.15016,
    "h": 277.3
  },
  "luminance": 0.02384
}

Semantic roles & 50–950 ramp

primary
#231977
secondary
#A0AC40
accent
#E840D6
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030F
muted
#7A787E

Preview Lab

Preview with #231977

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

Preview Lab → · Contrast checker → · Palette generator →

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