#231784#231784

#231784 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.6% C 0.168 H 275.7°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#231784
RGBrgb(35, 23, 132)
HSLhsl(247, 70%, 30%)
HSVhsv(247, 83%, 52%)
CMYKcmyk(73.5%, 82.6%, 0%, 48.2%)
CIE-LABlab(18.52, 40.56, -57.95)
CIE-LCHlch(18.52, 70.74, 304.99°)
OKLaboklab(31.56% 0.0166 -0.1675)
OKLCHoklch(31.56% 0.168 275.7)
XYZxyz(5.1630, 2.6356, 22.0619)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231784 #788417
analogous
#174184 #231784 #5A1784
triadic
#231784 #842317 #178423
tetradic
#231784 #841741 #788417 #17845A
square
#231784 #841741 #788417 #17845A
split-complementary
#231784 #845A17 #418417
monochromatic
#07051C #150E50 #231784 #3120B8 #4B39DC

Accessibility & contrast

On white

13.75
#231784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#231784 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231784
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231784#FFFFFF#000000##FFFFFF
##2317841.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003287
Deuteranopia (green-blind)
#002882
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #231784;
/* rgb */ color: rgb(35, 23, 132);
/* oklch */ color: oklch(31.6% 0.168 275.7);
Tailwind
colors: {
  custom: {
    50: '#6f57a9',
    500: '#231784',
    950: '#000000',
  },
}
SCSS
$custom: #231784;
$custom-light: #6f57a9;
$custom-dark: #000000;
JSON
{
  "hex": "#231784",
  "rgb": {
    "r": 35,
    "g": 23,
    "b": 132
  },
  "hsl": {
    "h": 246.606,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.31557,
    "c": 0.16835,
    "h": 275.7
  },
  "luminance": 0.02636
}

Semantic roles & 50–950 ramp

primary
#231784
secondary
#ABB83F
accent
#ED3BD9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #231784

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

Preview Lab → · Contrast checker → · Palette generator →

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