#232791#232791

#232791 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.3% C 0.169 H 272.1°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#232791
RGBrgb(35, 39, 145)
HSLhsl(238, 61%, 35%)
HSVhsv(238, 76%, 57%)
CMYKcmyk(75.9%, 73.1%, 0%, 43.1%)
CIE-LABlab(23.18, 35.90, -58.39)
CIE-LCHlch(23.18, 68.54, 301.58°)
OKLaboklab(35.27% 0.0062 -0.169)
OKLCHoklch(35.27% 0.169 272.1)
XYZxyz(6.5278, 3.8520, 27.1821)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#232791 #918D23
analogous
#235E91 #232791 #562391
triadic
#232791 #912327 #279123
tetradic
#232791 #91235E #918D23 #239156
square
#232791 #91235E #918D23 #239156
split-complementary
#232791 #915623 #5E9123
monochromatic
#0B0C2E #171A60 #232791 #2F34C2 #585CD7

Accessibility & contrast

On white

11.86
#232791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#232791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #232791
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##232791#FFFFFF#000000##FFFFFF
##2327911.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D94
Deuteranopia (green-blind)
#00328F
Tritanopia (blue-blind)
#004559
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #232791;
/* rgb */ color: rgb(35, 39, 145);
/* oklch */ color: oklch(35.3% 0.169 272.1);
Tailwind
colors: {
  custom: {
    50: '#7162b2',
    500: '#232791',
    950: '#000000',
  },
}
SCSS
$custom: #232791;
$custom-light: #7162b2;
$custom-dark: #000000;
JSON
{
  "hex": "#232791",
  "rgb": {
    "r": 35,
    "g": 39,
    "b": 145
  },
  "hsl": {
    "h": 237.818,
    "s": 61.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35273,
    "c": 0.16907,
    "h": 272.1
  },
  "luminance": 0.03853
}

Semantic roles & 50–950 ramp

primary
#232791
secondary
#BBB755
accent
#DE44E4
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #232791

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

Preview Lab → · Contrast checker → · Palette generator →

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