#231788#231788

#231788 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.0% C 0.173 H 275.1°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#231788
RGBrgb(35, 23, 136)
HSLhsl(246, 71%, 31%)
HSVhsv(246, 83%, 53%)
CMYKcmyk(74.3%, 83.1%, 0%, 46.7%)
CIE-LABlab(19.00, 41.84, -59.67)
CIE-LCHlch(19.00, 72.88, 305.04°)
OKLaboklab(32.03% 0.0155 -0.1725)
OKLCHoklch(32.03% 0.173 275.1)
XYZxyz(5.4420, 2.7472, 23.5312)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231788 #7C8817
analogous
#174388 #231788 #5B1788
triadic
#231788 #882317 #178823
tetradic
#231788 #881743 #7C8817 #17885B
square
#231788 #881743 #7C8817 #17885B
split-complementary
#231788 #885B17 #438817
monochromatic
#08051F #160E54 #231788 #3020BC #4D3BDE

Accessibility & contrast

On white

13.55
#231788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#231788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231788
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231788#FFFFFF#000000##FFFFFF
##2317881.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #231788;
/* rgb */ color: rgb(35, 23, 136);
/* oklch */ color: oklch(32.0% 0.173 275.1);
Tailwind
colors: {
  custom: {
    50: '#7058ac',
    500: '#231788',
    950: '#000000',
  },
}
SCSS
$custom: #231788;
$custom-light: #7058ac;
$custom-dark: #000000;
JSON
{
  "hex": "#231788",
  "rgb": {
    "r": 35,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 246.372,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32031,
    "c": 0.17323,
    "h": 275.1
  },
  "luminance": 0.02748
}

Semantic roles & 50–950 ramp

primary
#231788
secondary
#AFBC3F
accent
#EE3ADB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #231788

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

Preview Lab → · Contrast checker → · Palette generator →

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