#231786#231786

#231786 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.171 H 275.4°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#231786
RGBrgb(35, 23, 134)
HSLhsl(246, 71%, 31%)
HSVhsv(246, 83%, 53%)
CMYKcmyk(73.9%, 82.8%, 0%, 47.5%)
CIE-LABlab(18.76, 41.21, -58.82)
CIE-LCHlch(18.76, 71.81, 305.02°)
OKLaboklab(31.79% 0.016 -0.17)
OKLCHoklch(31.79% 0.171 275.4)
XYZxyz(5.3012, 2.6908, 22.7896)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231786 #7A8617
analogous
#174386 #231786 #5A1786
triadic
#231786 #862317 #178623
tetradic
#231786 #861743 #7A8617 #17865A
square
#231786 #861743 #7A8617 #17865A
split-complementary
#231786 #865A17 #438617
monochromatic
#08051E #150E52 #231786 #3120BA #4C3ADD

Accessibility & contrast

On white

13.65
#231786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #231786
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231786#FFFFFF#000000##FFFFFF
##2317861.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003289
Deuteranopia (green-blind)
#002984
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #231786;
/* rgb */ color: rgb(35, 23, 134);
/* oklch */ color: oklch(31.8% 0.171 275.4);
Tailwind
colors: {
  custom: {
    50: '#6f58aa',
    500: '#231786',
    950: '#000000',
  },
}
SCSS
$custom: #231786;
$custom-light: #6f58aa;
$custom-dark: #000000;
JSON
{
  "hex": "#231786",
  "rgb": {
    "r": 35,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 246.486,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31793,
    "c": 0.1708,
    "h": 275.4
  },
  "luminance": 0.02691
}

Semantic roles & 50–950 ramp

primary
#231786
secondary
#ADBA3F
accent
#ED3ADA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #231786

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

Preview Lab → · Contrast checker → · Palette generator →

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