#232172#232172

#232172 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.0% C 0.134 H 276.3°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#232172
RGBrgb(35, 33, 114)
HSLhsl(241, 55%, 29%)
HSVhsv(241, 71%, 45%)
CMYKcmyk(69.3%, 71.1%, 0%, 55.3%)
CIE-LABlab(18.63, 28.54, -46.29)
CIE-LCHlch(18.63, 54.38, 301.66°)
OKLaboklab(31.05% 0.0146 -0.1336)
OKLCHoklch(31.05% 0.134 276.3)
XYZxyz(4.2733, 2.6596, 16.2045)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#232172 #707221
analogous
#214872 #232172 #4C2172
triadic
#232172 #722321 #217223
tetradic
#232172 #722148 #707221 #21724C
square
#232172 #722148 #707221 #21724C
split-complementary
#232172 #724C21 #487221
monochromatic
#070718 #141343 #232172 #322FA1 #4844C9

Accessibility & contrast

On white

13.71
#232172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #232172
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##232172#FFFFFF#000000##FFFFFF
##2321721.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003174
Deuteranopia (green-blind)
#002A70
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #232172;
/* rgb */ color: rgb(35, 33, 114);
/* oklch */ color: oklch(31.0% 0.134 276.3);
Tailwind
colors: {
  custom: {
    50: '#6a5d9b',
    500: '#232172',
    950: '#000000',
  },
}
SCSS
$custom: #232172;
$custom-light: #6a5d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#232172",
  "rgb": {
    "r": 35,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 241.481,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31045,
    "c": 0.13442,
    "h": 276.3
  },
  "luminance": 0.0266
}

Semantic roles & 50–950 ramp

primary
#232172
secondary
#A3A549
accent
#DE49DB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #232172

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

Preview Lab → · Contrast checker → · Palette generator →

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