#231787#231787

#231787 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.172 H 275.3°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#231787
RGBrgb(35, 23, 135)
HSLhsl(246, 71%, 31%)
HSVhsv(246, 83%, 53%)
CMYKcmyk(74.1%, 83%, 0%, 47.1%)
CIE-LABlab(18.88, 41.53, -59.24)
CIE-LCHlch(18.88, 72.35, 305.03°)
OKLaboklab(31.91% 0.0158 -0.1713)
OKLCHoklch(31.91% 0.172 275.3)
XYZxyz(5.3713, 2.7189, 23.1587)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231787 #7B8717
analogous
#174387 #231787 #5B1787
triadic
#231787 #872317 #178723
tetradic
#231787 #871743 #7B8717 #17875B
square
#231787 #871743 #7B8717 #17875B
split-complementary
#231787 #875B17 #438717
monochromatic
#08051E #150E53 #231787 #3120BB #4C3BDE

Accessibility & contrast

On white

13.60
#231787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#231787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231787
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231787#FFFFFF#000000##FFFFFF
##2317871.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338A
Deuteranopia (green-blind)
#002985
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #231787;
/* rgb */ color: rgb(35, 23, 135);
/* oklch */ color: oklch(31.9% 0.172 275.3);
Tailwind
colors: {
  custom: {
    50: '#7058ab',
    500: '#231787',
    950: '#000000',
  },
}
SCSS
$custom: #231787;
$custom-light: #7058ab;
$custom-dark: #000000;
JSON
{
  "hex": "#231787",
  "rgb": {
    "r": 35,
    "g": 23,
    "b": 135
  },
  "hsl": {
    "h": 246.429,
    "s": 70.886,
    "l": 30.98
  },
  "oklch": {
    "l": 0.31912,
    "c": 0.17201,
    "h": 275.3
  },
  "luminance": 0.02719
}

Semantic roles & 50–950 ramp

primary
#231787
secondary
#AEBB3F
accent
#EE3ADA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #231787

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

Preview Lab → · Contrast checker → · Palette generator →

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