#232158#232158

#232158 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.6% C 0.096 H 280.0°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#232158
RGBrgb(35, 33, 88)
HSLhsl(242, 45%, 24%)
HSVhsv(242, 63%, 35%)
CMYKcmyk(60.2%, 62.5%, 0%, 65.5%)
CIE-LABlab(16.25, 18.96, -33.06)
CIE-LCHlch(16.25, 38.11, 299.83°)
OKLaboklab(28.57% 0.0168 -0.0948)
OKLCHoklch(28.57% 0.096 280)
XYZxyz(2.9979, 2.1494, 9.4875)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#232158 #565821
analogous
#213A58 #232158 #3E2158
triadic
#232158 #582321 #215823
tetradic
#232158 #58213A #565821 #21583E
square
#232158 #58213A #565821 #21583E
split-complementary
#232158 #583E21 #3A5821
monochromatic
#090816 #11102B #232158 #353285 #4642B1

Accessibility & contrast

On white

14.69
#232158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#232158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #232158
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##232158#FFFFFF#000000##FFFFFF
##2321581.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5A
Deuteranopia (green-blind)
#002657
Tritanopia (blue-blind)
#082E39
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #232158;
/* rgb */ color: rgb(35, 33, 88);
/* oklch */ color: oklch(28.6% 0.096 280.0);
Tailwind
colors: {
  custom: {
    50: '#645c88',
    500: '#232158',
    950: '#000000',
  },
}
SCSS
$custom: #232158;
$custom-light: #645c88;
$custom-dark: #000000;
JSON
{
  "hex": "#232158",
  "rgb": {
    "r": 35,
    "g": 33,
    "b": 88
  },
  "hsl": {
    "h": 242.182,
    "s": 45.455,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28574,
    "c": 0.09626,
    "h": 280
  },
  "luminance": 0.0215
}

Semantic roles & 50–950 ramp

primary
#232158
secondary
#8A8C49
accent
#D553D0
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040B
muted
#7A797C

Preview Lab

Preview with #232158

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

Preview Lab → · Contrast checker → · Palette generator →

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